Show Posts
|
Pages: [1]
|
2
|
General Category / EasyUI for jQuery / Datgrid grey sort icons not showing, blue icon shows fine
|
on: October 15, 2015, 12:35:13 PM
|
Using 1.4.3, downloaded fresh and running the multisort demo. For the life of me I can't figure out why the blue sort icon shows up on the demo, but not the grey ones. On the demo that is on your site, the grey ones show up. Below I think you can see what I'm talking about. My site nothing selected  My site column sorted  Your site nothing selected 
|
|
|
3
|
General Category / Bug Report / Re: Sorting does not work when Pagination + Filtering is enabled in Datagrid
|
on: October 15, 2015, 06:03:17 AM
|
Ok I rewrote everything to follow your convention and now it works. Thank you very much! <script> $(function(){ var dg = $('#dg').datagrid({ filterBtnIconCls:'icon-filter', remoteFilter: false, remoteSort:false, pagination:true, pageSize: 5, pageList: [5,10,20,50], url:'query.cfc?method=getUserDetails', type: 'get', dataType:'json' }); dg.datagrid('enableFilter'); }); </script>
|
|
|
4
|
General Category / Bug Report / Re: Sorting does not work when Pagination + Filtering is enabled in Datagrid
|
on: October 14, 2015, 09:52:50 AM
|
The user.cfc is returning all the data to the datagrid 'I believe'. If I set pagination="false" the sort works fine.
How would would one accomplish this... "So please let your 'user.cfc' returns all the data to the datagrid"?
So are you saying that if you use pagination, remoteSort has to be set to true? Because for me if I set remoteSort to true the sorting stops working completely.
|
|
|
5
|
General Category / Bug Report / Re: Sorting does not work when Pagination + Filtering is enabled in Datagrid
|
on: October 14, 2015, 07:16:00 AM
|
Thanks for the quick reply... here are the relevant pieces of the code. Hope you can help@ <table id="dg" class="easyui-datagrid" title="..." style="width:1050px;height:auto" sortName="partnumber" sortOrder="asc" rownumbers="true" pagination="true"> <thead> <tr> <th data-options="field:'inventoryid',width:80">Inventory ID</th> <th data-options="field:'lotstatusid',width:40,align:'center',editor:'text'">Status</th> <th data-options="field:'partnumber',width:150,align:'left',editor:'text',sortable:'true'">Part Number</th> </tr> </thead> <!--- This function is called to make an ajax call to get user details ---> $('#dg').datagrid({ iconCls: 'icon-edit', remoteSort: false, singleSelect: true, toolbar: '#tb', url:'user.cfc?method=getUserDetails', type: 'get', dataType:'json', onClickRow: onClickRow }); $(function(){ var dg = $('#dg').datagrid(); dg.datagrid('enableFilter', [{ field:'status', type:'combobox', options:{ panelHeight:'auto', data:[{value:'',text:'All'},{value:'A',text:'A'},{value:'N',text:'N'}], onChange:function(value){ if (value == ''){ dg.datagrid('removeFilterRule', 'status'); } else { dg.datagrid('addFilterRule', { field: 'status', op: 'equal', value: value }); } dg.datagrid('doFilter'); } } }]);
|
|
|
|