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
1145
igGrid Selection Persistence: after a refresh removes the only selected row, igGridSelection still returns an object for that previous selected row
posted

Hi,

Version: 14.2.20142.2477.

I have a grid with a number of rows (say 10) the first row is selected.

An event occurs that causes a new data binding to be processed that will remove the first row data.

When the data binding has completed, the original row 0 is gone and we are displaying nine rows, none of which are selected.

That is what we expect. 

However, if I query the grid for its selected rows using igGridSelection('selectedRows')

I receive back an array containing 1 object:

{elementjQuery.fn.init[0], id"XXXYYY",index-1}

where XXXYYY is a guid, which is the id of the original row0.

Is this the expected behaviour?

If so how do you recommend removing this from the selectedRows.

I have tried directly removing this entry within various event handlers e.g rowSelectionChanged

but the deletion is not persisted as subsequent gGridSelection('selectedRows') queries still returns an array with the above object as the only element.


Regards


Aidan