This is a migrated thread and some comments may be shown as answers.
Resizing grids server side via Ajax request
0 Answers 10 Views
This is a migrated thread and some comments may be shown as answers.
tmlipinski
Top achievements
Rank 1
tmlipinski asked on 11 Sep 2009, 11:39 AM
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 

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

No answers yet. Maybe you can help?

Tags
Grid
Asked by
tmlipinski
Top achievements
Rank 1
Share this question
or