EasyUI Forum
May 05, 2024, 03:12:56 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: Datagrid with multiSort and hidden fields  (Read 10193 times)
erkin
Newbie
*
Posts: 29


View Profile
« on: January 31, 2018, 04:08:51 AM »

I use the DataGrid with multiSort options, filter plugin and visible columns: 'column1', 'column2'.
I have request with parameters:
Code:
sort: column1,column2
I hide column2 and call 'doFilter' method but request also looks like
Code:
sort: column1,column2

How do I update the sorting options without 'column2'?
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: January 31, 2018, 06:49:02 AM »

Please try to call the 'sort' method to re-sort the data.
Code:
$('#dg').datagrid('sort',{sortName:'column1',sortOrder:'asc'});
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!