Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change height on TelerikMVC Grid Control

Does anybody know a way for changing the height of a Telerik Extensions for MVC Grid? Other than overriding the style manually using

div#MyGrid .t-grid-content {
    height: 100px !important;
}

I'd like to controll that on the grid itself, not on the stylesheet. Telerik samples and documentation say nothing about it and it seems it's not supported

Have anybody faced (and solved) the same issue?

like image 422
pollirrata Avatar asked Nov 27 '25 06:11

pollirrata


1 Answers

You can control the height of the grid using the Scrollable method.

Using an int32 representing pixels:

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

Using a string:

.Scrolling(scrolling => scrolling.Height("20em"))
like image 136
Daniel Avatar answered Nov 28 '25 21:11

Daniel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!