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

[Solved] Detail Grid column width

1 Answer 320 Views
Grid
This is a migrated thread and some comments may be shown as answers.
WinWeb
Top achievements
Rank 1
WinWeb asked on 08 Dec 2014, 08:02 PM
I have defined my main grid and detail grid columns with explicit values for width property. But both the grids were occupying the entire width available in the browser.

I wrapped the main grid inside a table with a fixed width and now the parent grid is honoring the width defined in the columns.

But I am not able to make the detail grid honor the defined column widths. Can someone please let me know how to resolve this issue?

Thanks

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 09 Dec 2014, 12:07 PM
Hello Karthikeyan,

The Grid layout is built from the outside to the inside, which means that setting smaller column widths will NOT make the whole widget narrower. You don't have to wrap the master Grid in additional table to make it narrower - setting a pixel width to its <div> will also do the job.

Please refer to the following documentation sections and let me know if you need further clarifications:

http://docs.telerik.com/kendo-ui/web/grid/appearance#column-widths

http://docs.telerik.com/kendo-ui/web/grid/appearance#width

http://docs.telerik.com/kendo-ui/web/grid/appearance#scrolling

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