Using Telerik MVC extensions, grid control, why does vertical and / or horizontal scrolling not appear when resizing a window?

advertisements

Hy,

In my app I use Telerik extensions for MVC Grid control:

Telerik Grid

Does anyone have any idea why when I resize the window (in any browser) the vertical or horizontal scroll is not appearing?

I am setting the width and height of the grid to 100%.

 @(Html.Telerik().Grid<MyViewModel>()
      .Name("MyGrid")
      .HtmlAttributes(new { style = "display:table; width:100%; height: 100%;" })
...)

I've tried even putting the grid into a div with width and height 100%... still no scroll when I resize the window.

Thanks in advance,

Jeff.


Are you looking for scrollbars on the whole window, or just the Grid?

I got scrollbars on the Grid, when I added a div around the grid, set the height to 100px, and set overflow to auto:

<div style="height: 100px; overflow:auto;">
    @(Html.Telerik().Grid<MyViewModel>()
      .Name("MyGrid")
    ...)
</div>

It doesn't sound like a problem with the grid, but with your HTML. Add some more code and more detail on what you are trying to accomplish.