Sort and Group Events on Grids

  • I've asked this in another thread, but I don't seem to get much response on the forums here...so...I'll ask it again. I need to know if there are events fired on re-sort or re-group of a grid. I'd like to call a function each time either action occurs on a grid or it's underlying store. Any thoughts or help would be really appreciated.

    Thanks much,
    JC


  • mjlecomte,

    sortchange fires on the grid for me with grouping enabled and groupOnSort set to false on the GroupingStore.

    --Ben


  • As far as I can tell these events get triggered when grouping changes:
    store's 'datachanged'
    grid's 'beforestatesave' and 'statesave'

    'sortchange' did not fire for me when I had grouping enabled and groupOnSort: false

    'sortchange' did fire for me when I had grouping enabled and groupOnSort: true


  • I have yet to find the event that is fired when grouping of a grid changes and would love to know that answer as well.

    To answer my own question, the event is 'refresh', on the GroupingView: http://extjs.com/forum/showthread.php?t=26651

    --Ben


  • The event that a grid fires its sorting is changed is sortchange. The event handler is passed the grid and a sortInfo object.

    I have yet to find the event that is fired when grouping of a grid changes and would love to know that answer as well.

    --Ben







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Sort and Group Events on Grids , Please add it free.
    Posted on January 8th 2009 in bomisasia.com edit