EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: erkin on January 31, 2018, 04:08:51 AM



Title: Datagrid with multiSort and hidden fields
Post by: erkin 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'?


Title: Re: Datagrid with multiSort and hidden fields
Post by: jarry 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'});