EasyUI Forum
May 08, 2024, 10:22:15 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 / News / Re: jQuery EasyUI 1.4.1 Release on: May 06, 2015, 07:57:09 PM
Thank u also
2  General Category / General Discussion / Re: Combogrid drop down list don't show the selected row on: May 05, 2015, 10:21:00 PM
<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
<script type="text/javascript" src="../../jquery.easyui.patch.js"></script>
3  General Category / EasyUI for jQuery / Re: An easy way to sort groups in datagrid groupview [SOLVED] on: May 05, 2015, 06:19:10 PM
var gview = $.extend({}, groupview, {
   onBeforeRender: function(target, rows){
      groupview.onBeforeRender.call(this, target, rows);

      var state = $.data(target, 'datagrid');
      var opts = state.options;
      if (opts.sortName != opts.groupField){
         return;
      }
      var groups = this.groups;
      groups.sort(function(a,b){
         var v1 = sumValue(a.rows, 'listprice');
         var v2 = sumValue(b.rows, 'listprice');
         return (opts.sortOrder=='asc'?1:-1)*(v1>v2?1:-1);
      });
      var index = 0;
      var newRows = [];
      for(var i=0; i<groups.length; i++){
         var group = groups;
         group.startIndex = index;
         index += group.rows.length;
         newRows = newRows.concat(group.rows);
      }
      state.data.rows = newRows;
      
      function sumValue(rows,field){
         var v = 0;
         $.map(rows, function(row){
            v += row[field];
         });
         return v;
      }
   }
})

$(function(){
   $('#dg').datagrid({
      view: gview,
      //...
   })   
})
4  General Category / Bug Report / Re: drag and drop bug in tree on: May 04, 2015, 10:33:33 PM
i also encountered such problem Cry.

hoping there's someone who can really help with this problem
5  General Category / General Discussion / Re: Month-Year Spinner on: May 04, 2015, 06:43:56 PM
Is this real ?
6  General Category / News / Re: jQuery EasyUI 1.4.1 Release on: May 04, 2015, 02:17:49 AM
thanks for a great news..now a new and better works can be accomplish right away
7  General Category / General Discussion / Re: how I do this on: April 24, 2015, 10:53:32 PM
yes it do works..
thanks for sharing such good source of codes for us..
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!