Categories | Question details Back To List | ||
Multiselection by API.. Hi.. I use the getSelectedRowId() to store curently selected rows, then change this list a liitle and want to make a new selection based on modified list wich of course contain rows ids separated by the coma sign. I'm spliting returned string into string array contains single row id and in the loop tried to perform this action on every row: grid.selectRow(grid.getRowIndex(selectingArray[index], false ,true, false)) where selectingArray[index] is string with row id. I belived that the third argument prevent me from clear previous selection, but now it selects all rows in the order, but deselecting row from previous iteration when selecting next one. !!! The problem is that i want to select all rows from the list, and hold it selected !!! Additional info: - i get the selected rows list while onKeyPress event is called. - i make selection in onBeforeSelect event method. - i lock onBeforeSelect event while selecting rows from inside of this method (to avoid infinite loop) - i clear all selection before new selection loop starts. - i am using PRO version, v15 Any ideas how to deal with this problem? Answer posted by Support on Sep 08, 2008 05:44 >>grid.selectRow(grid.getRowIndex(selectingArray[index], false ,true, false)) >>- i make selection in onBeforeSelect event method. |