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

[Solved] Problems modifying k-hiearchy-col style

1 Answer 338 Views
Grid
This is a migrated thread and some comments may be shown as answers.
grex
Top achievements
Rank 1
grex asked on 13 Feb 2015, 03:00 PM
Hello, 

We have a grid where have set the witdth of all the columns to 1% but one that have left without width. This way all the colums fit to its size but the one without width that takes the rest of the space. 

Everything is ok this way except when we remove the column without width, then the free space is taken by the hierarchy column (the triangle one). We have tried to set the this hierarchy column to a fixed width modifiying the CSS with this:

.k-grid .k-hierarchy-col {
width: 30px;
}

But didn't get any result and this column still takes the extra space. Is there a way to fix this behaviour so when there is free space in the grid it's divided between the other columns and not by this hiearchy column?

Regards.

1 Answer, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 17 Feb 2015, 09:11 AM
Hi Fernando,

In order to avoid this behaviour I would suggest in the columnHide event to change the Grid column widths. For your convenience I prepared a basic example

Regards,
Iliana Nikolova
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
grex
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Share this question
or