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?
GreetingsChristophe
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.
Hello,
Thanks for your suggestion, we've implemented your solution by clearing the selected row array in the dataBound eventhandler.1 issue remains though, when using the column chooser to add/remove columns, the row selection is lost but the dataBound event is not raised.We've handled this by clearing the selected rows array in the 'columncollectionmodified' eventhandler.So now everything works, but I think it still would be a nice feature to raise the rowselectionchanged when the row selection is cleared.Greetings,
Christophe
Thank you for your feedback.
Glad that you were able to implement your requirement. I have logged a product idea on your behalf regarding this matter directly with our product management team.Our product team chooses new product ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested features, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your feature is chosen for development, you will be notified at that time. Your reference number for this product idea is PI12060058.
If you would like to follow up on your product idea at a later point, you may contact Developer Support management via email. Please include the reference number of your product idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
Thank you for your request.