Selected Rows do not persist between filters (excel style)

I have a grid that allows paging, filtering and selection. FilteringType is Excel, SelectionType is multiple. Selection is added to a hidden input field via clientside script. When a user filters the data, selects a record, filters the data again, selects a different record, only the last row selected will be picked up by the getSelectedRecords() function, and if filters are removed no records show as selected. 

While I can handle the the selections for the hidden input I'd like to know if there's a way to have the selections persist between filters so the user's can see what they have selected.

Thanks,

Bryan

1 Reply

SE Sathyanarayanamoorthy Eswararao Syncfusion Team January 24, 2018 04:10 PM UTC

Hi Bryan, 

Thanks for contacting Syncfusion support. 

Query: I'd like to know if there's a way to have the selections persist between filters so the user's can see what they have selected. 
 
By default,  if filtering is done after selecting a record then the row selection will be removed. Hence the selection cannot be maintained between the filters. If you need selected records, then use rowSelected event of ejGrid.  
 
In rowSelected event we can get the selected row details in arguments. Using that we suggest you to store the selected row details in a variable.  
 
Refer the following documentation for rowSelected event details. 
 
 
Regards, 
Sathyanarayanamoorthy 


Loader.
Up arrow icon