EasyUI Forum
September 14, 2025, 07:58:25 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: TreeGrid: hide/show frozen and normal columns  (Read 7466 times)
Sapphire
Newbie
*
Posts: 8


View Profile
« on: October 16, 2015, 05:17:14 AM »

Hello,

i have a TreeGrid where i can show and hide the different columns (showColumn and hideColumn method).

This works without problems if i have show/hide only "normal" columns.

If i try to hide a frozen column the place where the column was is now empty.

Means the columns right from the hidden column are not moved left. After an additional (or 2)

  $('#tg').treegrid('reload');

the right columns moved to the empty place from the hidden frozen column.

With only "normal" columns it works direct without an additional reload.

Regards, Saphir
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: October 16, 2015, 05:38:49 PM »

Please try to call 'resize' method after calling the 'hideColumn' method.
Code:
$('#tg').treegrid('hideColumn',...);
$('#tg').treegrid('resize');
Logged
Sapphire
Newbie
*
Posts: 8


View Profile
« Reply #2 on: October 19, 2015, 05:44:15 AM »

Hello stworthy,

it works  Smiley

Thanks for your help.
Logged
Sapphire
Newbie
*
Posts: 8


View Profile
« Reply #3 on: October 20, 2015, 01:20:06 AM »

one other question in relatin to the different between frozen ans stantard columns

Sometimes if i have only fronzen columns visible and i expand some node the slider on the right treegrid side are not visible or not changed the size.

If i expand/collapse some other nodes the slide bar will be visible.

This appens, only if i use the frozen columns. If i use only standard colums there are nor problems with the slidebar.
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!