Hi, I've been trying to select rows in an igGrid (version 13.1.20131.2143) when it loads, but they don't seem to be working quite right. When I run the below code the rows and checkboxes are NOT selected but the last row with index 5 is highlighted without the checkbox selected. If I page to the next page, then page back to the first page, the correct rows are selected and the check boxes are checked correctly.
var gridRowsRendered = function (evt, ui) { $('#' + ui.owner.id()).igGridSelection('selectRow', 1); $('#' + ui.owner.id()).igGridSelection('selectRow', 3); };
Here's what it looks like right after it initializes:
That works great! Thanks for clarifying the events for me.
Hello Dirq,
Please let me know if I can provide any further assistance regarding this matter.
Hello Dirk,
Grid’s rendered and pageindexchanged events need to be handled for the selection when paging is on. I have updated the fiddle http://jsfiddle.net/73Egb/38/ for the same
Please let me know if you have any further questions.
I was able to see the issue you were describing in the sample you have provided. I am currently debugging the sample to see what causing the issue. I will update you by the end of the day tomorrow with the progress.
Please let me know if you have any further questions regarding this matter.
I just noticed that this question was incorrectly marked as answered. I un-answered it since I still am experiencing the issue, even with the latest version: IgniteUI 13.1.20131.2217. The jsFiddle is still producing the error, please look at it.
I'm having issues selecting by primary key in the rowsRendered event. It seems that when paging back to a page that was already looked at, grid.igGridSelection('clearSelection') does not clear the selection.
This also has case #CAS-123464-F9P2W8