EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Sapphire on October 16, 2015, 05:17:14 AM



Title: TreeGrid: hide/show frozen and normal columns
Post by: Sapphire 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


Title: Re: TreeGrid: hide/show frozen and normal columns
Post by: stworthy 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');


Title: Re: TreeGrid: hide/show frozen and normal columns
Post by: Sapphire on October 19, 2015, 05:44:15 AM
Hello stworthy,

it works  :)

Thanks for your help.


Title: Re: TreeGrid: hide/show frozen and normal columns
Post by: Sapphire 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.