EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: JPi on December 29, 2016, 04:23:27 AM



Title: How to freeze datagrid selection while filtering
Post by: JPi on December 29, 2016, 04:23:27 AM
Hi,

I have a datagrid and filtering is enabled using enableFilter method. Now let's take an example like demonstrated below -

checkbox   Brand     Quantity
checkbox   Lenovo   10
checkbox   HP         30
checkbox   Asus       50
 If I filter by brand 'Asus', then record 3 only appears which is correct then I click on checkbox for selecting the Asus row. Once I remove the search criteria i.e. Asus, the data reloads in table with all 3 records and checkbox selection disappears. Is there a way to keep the selected rows intact on filter/ de-filter actions ?

Thanks,
JPi


Title: Re: How to freeze datagrid selection while filtering
Post by: jarry on December 29, 2016, 06:59:44 AM
Please set the 'idField' property for your datagrid.