Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
115
selectionChanged is not raised when performing an event that causes a deselection of the selected rows
posted

Hi,

When selecting a row in the iggrid the 'selectionchanged' event is raised.
We use this event to populate an array of selected rows in a knockout extension.

When paging or using a filter, the selected rows are cleared but no 'selectionChanged' event is raised...
This makes is it very difficult to keep our array in sync with the selected rows from the grid.

Is it possible to raise the 'selectionChanged' event or a new rowsDeselected event when rows are deselected?

Greetings
Christophe

Parents
  • 49378
    posted

    Hello Christophe,

    Thank you for posting in the community.

    The selection changed event would not be raised on actions such as filtering and paging as the igGrid is being rebound to its data source in such situations. I would suggest that you handle the grid's dataBinding event (which would be fired when paging and filtering) in order to clear the array used to keep track of the selected rows.

    Please let me know if this helps.

Reply Children