EasyUI Forum
September 14, 2025, 07:09:24 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / EasyUI for jQuery / Re: Datgrid grey sort icons not showing, blue icon shows fine on: October 16, 2015, 04:56:09 AM
Ah, ok. Thank you for the quick reply.

You don't happen to have an estimated release date do you?
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!

Code:
<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@

Code:
<table id="dg" class="easyui-datagrid" title="..." style="width:1050px;height:auto" sortName="partnumber" sortOrder="asc" rownumbers="true" pagination="true">

Code:
<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>

Code:
<!--- 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');
                    }
                }
            }]);
6  General Category / Bug Report / Sorting does not work when Pagination + Filtering is enabled in Datagrid on: October 14, 2015, 06:35:31 AM
If I try to enable all 3 options... sorting, pagination and filtering, the sort that is done is only on the records displayed on the first page of the pagination. If I remove filtering sorting works correctly. If I remove pagination and leave filtering, sorting works correctly.

Is there any way to fix it so all 3 options can be used at once?

Thanks
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!