EasyUI Forum
May 16, 2024, 11:38:46 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: hideColumn / showColumn  (Read 6333 times)
rezzonico
Full Member
***
Posts: 183


View Profile
« on: September 02, 2016, 04:08:45 AM »

Hi all,

I have found the following example in order to hide/show a column.
http://jsfiddle.net/xz955jLe/144/
It works without problem.

Now I have changed the line:
{field:'ck', checkbox:true, hidden: false},
with this line:
{field:'ck', checkbox:true, hidden: true},

Please try the following link:
http://195.144.40.170/jeasyui/NNN/index.html
and hit "hide Column" / "show Column" many times.

As you can see the right column moves to the left.
Any help to solve this problem is appreciated.

Regards.
Miche
« Last Edit: September 02, 2016, 04:10:39 AM by rezzonico » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: September 02, 2016, 06:41:14 PM »

You need to call 'resizeFilter' method after calling 'showColumn' or 'hideColumn' methods.
Code:
$('#dg').datagrid('hideColumn','ck');
$('#dg').datagrid('resizeFilter');
Logged
rezzonico
Full Member
***
Posts: 183


View Profile
« Reply #2 on: September 05, 2016, 12:48:42 AM »

Thanks a lot !

Regards
Miche
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!