Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
592
WebGrid's StationaryMargin issue
posted

Hi all,

I used WebGrid 8.3 with StationaryMargin = "Header" and set the column's width as Unit.Percentage.

When the scrollbar appear, the Grid's Header was misalignment with the data column. That was the Header's width was not resized when the scrollbar appeard.

Note that if I set the column's width as Unit.Pixel, this issue did not occur. But I need to set the column width as Unit.Percentage in order to make the Grid's columns automaticly fit the width of Web page when resize the browser.

Please help me to resolve this issue.

Thanks,

Nguyen Huu Chu

VNetSoftware LLC

Parents
No Data
Reply
  • 45049
    posted

    If your grid's data is hierarchical, then this is a known and documented limitation.  Below is an excerpt of the Known Issues page as taken from our online help documentation of NetAdvantage for .NET 2008 Volume 3:

    Layout Limitation

    There is a known limitation with WebGrid under the following conditions:

    • The grid contains hierarchical data.
    • The Width of the grid is set using percentages.
    • The Width of the Columns in the grid are set using percentages.
    • The grid is set with stationary margins, fixed headers, or both.

    Under these circumstances, when resizing columns in child bands, the width of the column headers may change at a different rate than the width of their corresponding columns, causing a visible disconnect between the headers and their columns.

    This won't occur if the grid's TableLayout is set to Fixed, while neither stationary margins nor fixed headers are enabled.

    If your data is not hierarchical, then there may be a different cause.  If so, please submit a support request and attach a sample project that we can run and debug that demonstrates this behavior.  A Developer Support Engineer will work with you to identify a resolution

Children
No Data