EasyUI Forum
March 29, 2024, 12:38:26 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to freeze datagrid selection while filtering  (Read 3523 times)
JPi
Newbie
*
Posts: 18


View Profile Email
« 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
Logged
jarry
Administrator
Hero Member
*****
Posts: 2260


View Profile Email
« Reply #1 on: December 29, 2016, 06:59:44 AM »

Please set the 'idField' property for your datagrid.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!