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

Bug: JS error resizing locked columns

3 Answers 87 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nicholas
Top achievements
Rank 1
Nicholas asked on 03 Sep 2014, 03:15 PM
Hi,

The _adjustRowsHeight function in the Kendo Grid code throws an exception if columns are resized in a grid containing locked columns while the grid is empty. These lines are causing the issue:

for (idx = 0; idx < length; idx++) {
    if (rows[idx].style.height) {
        rows[idx].style.height = rows2[idx].style.height = "";
    }
 
    var offsetHeight1 = rows[idx].offsetHeight;
    var offsetHeight2 = rows2[idx].offsetHeight;

If the grid is created by the Kendo MVC wrapper, "rows" contains one <tr class='k-no-data'> while rows2 is empty. I'd link to a jsfiddle reproducing the problem, but the k-no-data row is only added by the MVC wrapper.

Once this happens it's impossible to resize any columns until the page is reloaded. Is this a known issue?

Thanks,
Nick

3 Answers, 1 is accepted

Sort by
0
Accepted
Rosen
Telerik team
answered on 04 Sep 2014, 12:20 PM
Hello Nicholas,

Thanks for the report. We have managed to recreate the issue locally and to address it. You will be able to find the fix in the next internal build. I have also updated your telerik points.

Regards,
Rosen
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Kajal
Top achievements
Rank 1
answered on 25 Dec 2014, 12:51 AM
Is this issue fixed? If so, which release has the fix?

Thanks
Kajal
0
Alex Gyoshev
Telerik team
answered on 25 Dec 2014, 09:20 AM
Hello Kajal,

The issue should be fixed in the 2014.Q3 official release (2014.3.1119), as well as the 2014.Q2 SP2 release (2014.2.1008).

Regards,
Alex Gyoshev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Nicholas
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Kajal
Top achievements
Rank 1
Alex Gyoshev
Telerik team
Share this question
or