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

autoFitColumn doesn't work properly ?

1 Answer 159 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pierre
Top achievements
Rank 1
Pierre asked on 19 Jun 2015, 09:15 AM

Hi,

 I use autoFitColumn function on a column object and the function applies on the next column (I think there is a problem between model index and view index).

The first column of my grid is frozen then the second column is autofited properly and the third column autofits the fourth one. The grid is scrollable and all columns are visible.

If I change the 'locked' property of the first column, then the autoFitColumn works properly so I suppose there is a bug.

 We are using Kendo v1.521 (I also try to use the last version but the problem is the same)

 

I have changed your code in autoFitColumn function from this :

if (that.lockedHeader && visibleLocked >= index && !isLocked) {
    index -= visibleLocked;
}

to that :

if (that.lockedHeader && !isLocked) {
    index -= visibleLocked;
}

And it seems to work properly. What do you think about it ?

Thanks for your help.

Regards

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 19 Jun 2015, 01:16 PM
Hello Pierre,

Thanks for bringing the issue to our attention. Indeed, the mentioned conditional statement is not correct.

The bug is now fixed in the source code and chages will take effect in Q2 2015, due next week. I have updated your Telerik points.

Regards,
Dimo
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
Pierre
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or