EasyUI Forum
October 18, 2025, 08:58:04 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: datagrid collapse false on click event  (Read 11199 times)
catpaw
Jr. Member
**
Posts: 85


View Profile Email
« on: May 21, 2015, 12:52:03 PM »

hello

I have a chart that in the event click need my datagrid to expand.

the initial properties of the datagrid are:

<table id="dgA" class="easyui-datagrid" style="width:auto; height:400px;" title="Title of table" pagination="false" rownumbers="true" nowrap="false" fitColumns="false" singleSelect="true" striped="true" showFooter="true" remoteSort="false" data-options="
                url:'source/get.php',
                collapsible:true,
                collapsed:true,

                view:scrollview,
                autoRowHeight:false,
                pageSize:20">

then the event:

Code:
events: {
click: function (e) {
//$('#dgA').datagrid('collapsed',false); //-----------> I tried....luckless
$('#dgA').datagrid('getPanel').panel('expand',true); //-----------> I tried....luckless
//$('#dgA').datagrid({collapsed:false}); //-----------> I tried....luckless
}
}

any help will be appreciated
Logged
catpaw
Jr. Member
**
Posts: 85


View Profile Email
« Reply #1 on: May 21, 2015, 06:32:13 PM »

I solved my problem with:

Code:
$('#dgA').datagrid('getPanel').panel('expand',true);
$('#dgA').datagrid({
collapsed:false
});

regards!!
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!