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

[Solved] Grid Default Height

3 Answers 221 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kapil Koli
Top achievements
Rank 1
Kapil Koli asked on 27 Jul 2010, 03:19 PM
Hello,

I am checking the grid functionality in my application.
I have issue in that. Currently i am using the paging functionality of grid. Set the 10 record in per page.if  below the 10 or zero record i want show the grid with same height, but is not setting default height of the grid.

.Scrollable(scrolling => scrolling.Height(300))

If i using scrollable property of grid then it sets the 300 px height of the grid.

Thanks,
Kaps

3 Answers, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 28 Jul 2010, 11:06 AM
Hello Kapil Koli,

You can set default height of the grid through .TableHtmlAttributes() method. Check this code snippet which shows how to use it:
.TableHtmlAttributes(new { style = "height:300px" })

Sincerely yours,
Hristo Germanov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
srikanth
Top achievements
Rank 1
answered on 25 Feb 2011, 04:57 PM
Hi,
This is setting the height to 300px but the grid 'header' and 'footer' are expanding vertically . Is there any other solution to set the content size only.

thanks,
Srikanth.
0
Ben
Top achievements
Rank 1
answered on 30 Jul 2012, 07:23 PM
Any solution to not splitting the height between the column headers and the content?
Tags
Grid
Asked by
Kapil Koli
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
srikanth
Top achievements
Rank 1
Ben
Top achievements
Rank 1
Share this question
or