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

[Solved] Scrolling questions

1 Answer 214 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Josh
Top achievements
Rank 1
Josh asked on 09 Feb 2008, 03:25 AM
I've got a grid which is auto-generating its' columns...

1) When setting 'UseStaticHeaders' the headers' width doesn't expand with the actual width of the data columns (the header doesn't match up with the data rows). Everything looks fine without using static headers. Is there some setting I am missing?

2) What determines the width and the max width of auto generated columns? I can see that it will wrap at some point, can this be set? Can a minimum width also be set? I suppose this might help with #1.

3) It would be nice if there was a way to set the ScrollHeight to 100% or some other setting where there wouldn't be a vertical scroll, it's not always desirable, esecially if the overall page is already vertically scrollable the page might as well be longer so there is only one scroll. (Same for horizontal I might add, this would be addressable depending on answers to #2). I've tried 100%, it seems to go the default (300 or 350 pixels, I forget which).

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 12 Feb 2008, 01:37 PM
Hi Josh,

Onto your questions:

  1. Do you get the misalignment with a particular grid skin? Does the discrepancy appear if you disable the skinning mechanism of the grid (Skin="")? Note that the Prometheus versions of the RadGrid skins are designed for scenarios with scrolling and static headers enabled/disabled and should not exhibit appearance glitches.
  2. The default table layout for the master table in the grid is set to auto, hence the auto-generated columns will be stretch to accommodate the longest text value in their cells. Additionally, you can fine-tune the grid scrolling behavior with the instructions from the following online demo:

    http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/Client/Scrolling/DefaultCS.aspx
  3. To learn how to set 100% Height/Width for grid with scrolling and static header when the control resides on the page or inside RadSplitter, review the online resources linked below:

    http://www.telerik.com/community/code-library/submission/b311D-keegm.aspx
    http://www.telerik.com/support/kb/article/b454K-tdk-b454T-cka-b454c-cka.aspx
Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Josh
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or