change grid height on paging

2 posts, 0 answers
  1. appdev
    appdev avatar
    223 posts
    Member since:
    Sep 2008

    Posted 07 Jun 2011 Link to this post

    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";

    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.
  2. Gimmik
    Gimmik avatar
    170 posts
    Member since:
    May 2011

    Posted 09 Jun 2011 Link to this post

    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.

Back to Top