Keeping selected rows displayed after applying search criteria

Hi,

Is there a way to keep all the current selected rows displayed after applying search criteria even though these rows may not match the search criteria?

For example, I have a list of devices (including id 6001, 6002, 7001, 7002) in the grid. 
6001 and 6002 are selected and shown in the grid currently. If I search for devices whose id starting with 700, 7001 and 7002 will be shown in the grid while 6001 and 6002 will be hidden although they are still selected.

Is it possible to make 6001 and 6002 visible although they do not match the search criteria?

Thanks.



3 Replies 1 reply marked as answer

SK Sujith Kumar Rajkumar Syncfusion Team April 27, 2021 08:59 AM UTC

Hi Huifei, 
 
Greetings from Syncfusion support. 
 
Based on the query we could understand that your requirement is to display selected records in the Grid on performing search even though they are not present in the result. We would like to let you know that the Grid’s searching functionality works on basis of comparing the searched value with the column data in the underlying data source bound to the grid and displays the search result based on that. This is the behavior when local data is bound to the Grid. And when remote data is bound, the search predicates will be sent in the server request and the results returned back from the server are displayed in the Grid.  This is the default behavior of the Grid’s search functionality and so it is not feasible to achieve the mentioned requirement. 
 
Please get back to us if you require any further assistance. 
 
Regards, 
Sujith R 


Marked as answer

HR Huifei Rao May 13, 2021 01:34 PM UTC

Thanks for clarification.


PG Praveenkumar Gajendiran Syncfusion Team May 14, 2021 06:15 AM UTC

Hi Huifei,

You are welcome, please get back to us if you need further assistance.

 
Regards,
Praveenkumar G 


Loader.
Up arrow icon