This is a migrated thread and some comments may be shown as answers.

Trouble with setoptions + locked columns

1 Answer 174 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bridge24
Top achievements
Rank 1
Iron
Bridge24 asked on 14 Dec 2015, 08:29 PM

I need to enable-disable "grouping" on my grid.  
When I enable it, I change the locked status on my columns, I need to disable all "lockable" status.
When I do that, after, I can't change the visibility of columns.

Based on that demo:
http://dojo.telerik.com/aJEkA/10
Click "enable grouping", then try to show-hide any column with the menu.
You'll get errors in the console.log, and the grid is not working as expected.

It looks like the event raised when the column is changed is trying to find a "locked table" zone, but it no longer exists.  

That table was present initially, but was removed when calling setOptions with no locked columns.

Error in: _syncLockedContentHeight / _adjustLockedHorizontalScrollBar - cannot read property 'height' of null in kendo code.

Thank you

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 17 Dec 2015, 08:19 AM

Hello Dani,

 

Indeed this is bug on our side. This issue will be fixed for the next internal build

 

As a temporary workaround you can nullify grid1.lockedTable after calling setOptions. Here is updated example - http://dojo.telerik.com/@rusev/IpexI

 

Regards,
Nikolay Rusev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Bridge24
Top achievements
Rank 1
Iron
Answers by
Nikolay Rusev
Telerik team
Share this question
or