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

If grid is floated to left, unsized columns behave differently in different browsers.

1 Answer 83 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Iron
Iron
Andrew asked on 27 Mar 2012, 11:48 PM
Here's what I'm trying to achieve: I want to have a data grid on the left and a column of buttons on the right.
I want the data grid on the left to take as much space as it needs but no more.

My grid has three columns. The first two are fixed size, and the third isn't. Optimistically, I thought that would mean that the third column takes as much space as it needs.

On Chrome, this third column has a width of 0.
On IE9, this third column takes up 100% of the remaining width of the screen.

Neither of these behaviors is what I want. I want it to take up as much space as it needs to hold the content.

Here's my working example:   js fiddle example   

View this same example in Chrome and IE9 and you'll see the difference.


Can somebody provide me ideas to solve this problem?

(I could put the whole grid and the buttons in one big layout table, but that will be using a table for layout purposes - the CSS police will come knocking :-) )

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 28 Mar 2012, 09:08 AM
Hello Andrew,

The described behavior and layout can be achieved if you disable Grid scrolling with scrollable:false.

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