EasyUI Forum
May 16, 2024, 09:17:14 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: 1 2 3 [4]
46  General Category / EasyUI for jQuery / Re: Change behavior of propertygrid groups to be like an accordion on: November 05, 2015, 04:34:30 AM
Yes, thanks, but this would change the behavior for all propertygrids in my application.
47  General Category / EasyUI for jQuery / Change behavior of propertygrid groups to be like an accordion on: November 04, 2015, 09:35:15 AM
I just did a little change, that the datagrid-groups can only be opened exclusively:

onLoadSuccess: function() {

   var groupcount = 5;
   // Just use the correct number here ...
   // in Version 1.4.4 you can get the count via 'groups' method

   $(this).propertygrid('collapseGroup');
   $(this).propertygrid('expandGroup',0);

   var dg=this;
   $(this).parent().find('.datagrid-row-expander').on('click', function() {
      group=$(this).parents('.datagrid-group').attr('group-index');
      for(var i=0;i<groupcount;i++) {
         if(i!=group) {
            $(dg).propertygrid('collapseGroup', i);
         }
      }
   });
}
48  General Category / EasyUI for jQuery / Re: Resize tabs on scrollbar appearance? on: November 04, 2015, 09:19:32 AM
Why don't you just resize the Tab after you have added the new content?
Pages: 1 2 3 [4]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!