Hi,
I would like to get such a functionality:
- click a button on the form
- this button sends an Ajax request providing a new grid's height
This grid uses static headers and allows scrolling. If I set just (in the codebehind):
MyGrid.Height = new Unit(newHeight, UnitType.Pixel);
the total height of this grid is changed but the scrolling area remains unchanged. I must change both Height and
I would like to get such a functionality:
- click a button on the form
- this button sends an Ajax request providing a new grid's height
This grid uses static headers and allows scrolling. If I set just (in the codebehind):
MyGrid.Height = new Unit(newHeight, UnitType.Pixel);
the total height of this grid is changed but the scrolling area remains unchanged. I must change both Height and
ClientSettings.Scrolling.ScrollHeight properties.
These properties must be set to different values and it is not clear how to compute the proper difference. But when the form is initially loaded, scrolling area height (that is not set at all in aspx) is some way automatically adjusted to fit the total grid height - whatever header's height is set.
What should I do to get the scrolling area automatically adjusted after Ajax request too?
Best regards
Tomasz