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

change grid height on paging

1 Answer 32 Views
Grid
This is a migrated thread and some comments may be shown as answers.
appdev
Top achievements
Rank 1
appdev asked on 07 Jun 2011, 04:58 PM
so i have my grid change the height on pane collpase using the function applyHeight below on the onclientcollapsing on radpane
function applyHeight(sender, args) {
                    var grid;
                    // set height to the whole RadGrid control
                    grid = $find("<%= grid_Historical_Commodity.ClientID %>");
                    grid.get_element().style.height ="580px";
                    grid.repaint();
                }

however when i click page 2 on the grid, the height of the grid went back to original height. so how do i keep the height of the grid the same after i collapse? thank you.

1 Answer, 1 is accepted

Sort by
0
Gimmik
Top achievements
Rank 1
answered on 09 Jun 2011, 10:06 PM
Hi Duy,

If you make the change to the grid height server-side instead of client-side then it should persist through postbacks. Let me know if that works for you.

-Gimmik
Tags
Grid
Asked by
appdev
Top achievements
Rank 1
Answers by
Gimmik
Top achievements
Rank 1
Share this question
or