EasyUI Forum
May 17, 2024, 08:04:53 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: Sorting in Datagrid  (Read 6006 times)
Andy1980
Newbie
*
Posts: 14


View Profile Email
« on: March 07, 2014, 03:10:14 AM »

Hi all,

when i enable the sorting in my datagrid, nothing happens, when i click the sortable column.
Do i have to implent the sort on my own?


Code:
<script>
$(function(){
      $('#Disp_Tolerances_grid').datagrid({
        singleSelect:false,
        idField:'FLEV',
        data: my_disp_tol,
        columns:[[
          {field:'FLEV',title:'Filter Level',rowspan:2,width:62},
          {title:'Global Data',colspan:2},
          {title:'OD Data',colspan:2},
          {field:'USER',title:'User',rowspan:2,width:100},
          {field:'DATE',title:'Date',rowspan:2,width:115}
      ],[
          {field:'FROMGL',title:'From',width:70,[b]sortable:true[/b]},
          {field:'TOGL',title:'To',width:70},
          {field:'FROMOD',title:'From',width:70},
          {field:'TOOD',title:'To',width:70}

        ]]
      });
    });
  </script>

  <table id="Disp_Tolerances_grid" ></table>
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: March 07, 2014, 08:58:20 AM »

If you don't wish to do remote sorting, please set the 'remoteSort' property to false.
Code:
$('#Disp_Tolerances_grid').datagrid({
  remoteSort: false,
  //...
});
Logged
Andy1980
Newbie
*
Posts: 14


View Profile Email
« Reply #2 on: March 10, 2014, 03:04:51 AM »

Thanks a lot.

I didn't notive to set this parameter to false.

Topic is SOLVED !!!
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!