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

[Solved] Vertical Scrollbar not always displaying

3 Answers 134 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brandon
Top achievements
Rank 1
Brandon asked on 07 Jul 2009, 11:09 PM
I have a grid that is being dynamically added to a page on a async postback.

With this grid, i am setting the following:

_radDataGrid.ClientSettings.Scrolling.ScrollHeight =

Unit.Pixel(440);

 

_radDataGrid.Width =

Unit.Percentage(100);

 

 

 

 


The problem I am having is that no vertical scrollbar is showing up when the columns I have added do not require horizontal scrolling. There is plenty of data however that would require vertical scrolling. If I cause the page to "repaint" at all, like resizing the window, the scrollbar will appear.

Do you have any suggestions on how I can get thsi scrollbar to appear correctly? I do not want to set the overflow-y to scroll because it is often that i dont need a scrollbar.

Thanks!
Brandon

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 08 Jul 2009, 04:17 AM
Hi Brandon,

To display the vertical scroll make sure that the height of the records in the grid do exceed the ClientSettings -> Scrolling -> ScrollHeight scroll setting.

Also to restrict the horizontal bar from being rendered, verify that:
  • the width for the MasterTableView is set to 99% if auto-generated columns are used
  • the total width of the declaratively set columns is smaller than the width of the grid itself

Thanks
Shinu
0
Brandon
Top achievements
Rank 1
answered on 08 Jul 2009, 02:33 PM
Hi Shinu,

I appreciate the quick response.
There is plenty of data which stacks up to a much greater height than the scroll height. If i put my mouse over the data and scroll with the scroll wheel, it will actually scroll. The problem is I just dont see any vertical scrollbars.

The horizontal scrollbar is showing up correctly, so that is not a problem.

You can see half rows on the top and bottom of the grid, becuase it is partly scrolled.
0
Dimo
Telerik team
answered on 09 Jul 2009, 11:31 AM
Hi Brandon,

Since the cause of the problem is not obvious, we will need a runnable demo of your implementation, so that we can inspect it locally and give further advice. Please specify which RadControls version are you using and which browser exhibits the problem.

Sincerely yours,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Brandon
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Brandon
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or