Hi,
I'm using the following grid:
(showing only parts related to sizing and scrolling).
This code gives me the following result (table in red) :
- when there are not enough items in the grid to require scrolling: screenshot
- when there are enough items in the grid to allow scrolling: screenshot
I would like to have a vertical scrollbar on the right of this grid without having a horizontal one.
- If I set Width="100%" to my MasterTableView, then the 2 columns take all the table's width, which is nice when there's not enough items in the grid to allow scrolling. As soon as scrolling is needed, the vertical scrollbar shows up (at the correct location, i.e. "inside" the grid, so the grid width is still 350px - that's all the space I have). But because the vertical scrollbar takes like 15 (?) pixels in width, there's not enough space anymore for my 2 columns and this results in a horizontal scrollbar showing up.
- I would like either:
a) have the vertical scrollbar ONLY shows up (no horizontal). In that case, I can hardly imagine how it would manage displaying my 2 columns with a correct width in both cases where scrolling is needed or not needed.
b) have the vertical scrollbar ONLY always shown. In that case, my 2 columns width is the same whereas we need scrolling or not, only the scrollbar would get enabled or disabled. This is what I'm looking for.
Is it possible to achieve this?
Thanks
Nicolas
I'm using the following grid:
<telerik:RadGrid |
Width="350px" |
Height="527px"> |
<MasterTableView |
TableLayout="Fixed"> |
<Columns> |
<telerik:GridTemplateColumn> |
<HeaderStyle Width="257px" /> |
</telerik:GridTemplateColumn> |
<telerik:GridBoundColumn> |
<HeaderStyle Width="65px" /> |
</telerik:GridBoundColumn> |
</columns> |
</MasterTableView> |
<ClientSettings> |
<Scrolling AllowScroll="True" ScrollHeight="475px" UseStaticHeaders="true" SaveScrollPosition="True"></Scrolling> |
</ClientSettings> |
</telerik:RadGrid> |
(showing only parts related to sizing and scrolling).
This code gives me the following result (table in red) :
- when there are not enough items in the grid to require scrolling: screenshot
- when there are enough items in the grid to allow scrolling: screenshot
I would like to have a vertical scrollbar on the right of this grid without having a horizontal one.
- If I set Width="100%" to my MasterTableView, then the 2 columns take all the table's width, which is nice when there's not enough items in the grid to allow scrolling. As soon as scrolling is needed, the vertical scrollbar shows up (at the correct location, i.e. "inside" the grid, so the grid width is still 350px - that's all the space I have). But because the vertical scrollbar takes like 15 (?) pixels in width, there's not enough space anymore for my 2 columns and this results in a horizontal scrollbar showing up.
- I would like either:
a) have the vertical scrollbar ONLY shows up (no horizontal). In that case, I can hardly imagine how it would manage displaying my 2 columns with a correct width in both cases where scrolling is needed or not needed.
b) have the vertical scrollbar ONLY always shown. In that case, my 2 columns width is the same whereas we need scrolling or not, only the scrollbar would get enabled or disabled. This is what I'm looking for.
Is it possible to achieve this?
Thanks
Nicolas