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

Maximum width for the Grid

2 Answers 872 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Reid
Top achievements
Rank 2
Reid asked on 27 Dec 2018, 12:06 PM
I need to know how to set the maximum width of the Grid.  I have it inside a DIV with a style setting the width but it extends beyond that and there seems to be nothing that changes that.  I am setting the column widths.

2 Answers, 1 is accepted

Sort by
0
Accepted
Konstantin Dikov
Telerik team
answered on 28 Dec 2018, 07:36 AM
Hello Reid,

If the width of the columns exceeds the width of the container and if the Grid is with disabled scrolling, the TABLE element will exceed the wrapping DIV element. For resolving this you could either change the width of the columns, so that the sum of all widths matches the width of the parent container or enable the Scrollable of the Grid:
.Scrollable()

More information about the Grid width could be found in the following help article:
Hope this helps.


Regards,
Konstantin Dikov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Reid
Top achievements
Rank 2
answered on 28 Dec 2018, 02:50 PM
Thank you Konstantin.  Adding hat parameter to the constructor worked.
Tags
Grid
Asked by
Reid
Top achievements
Rank 2
Answers by
Konstantin Dikov
Telerik team
Reid
Top achievements
Rank 2
Share this question
or