Grid not resizing correctly

4 posts, 0 answers
  1. James
    James avatar
    60 posts
    Member since:
    Sep 2007

    Posted 23 Jun 2008 Link to this post

    Hi,

    I'm currently experiencing a problem with resizing the grid control. I need the grid to dynamically resize with the page. The page is a "content page" with a master page around it.

    I have to put code in the resize event of the window to ensure that the page is always at least the height of the browser window. (i.e. so that the footer of the page is always just above the browser statusbar).

    The code seems to run fine on all pages. I have a problem with the grid however. On doing a full postback, the event fires corretcly with the correct height. The grid expands to the full height required, but the content only displays 6 items and shows a scrollbar. There are only 9 items in the grid on my test machine and the scrollbar shouldn't be visible as the page is about twice the required height.

    Is there any way I can force the grid to redraw or refresh itself?

    Regards

    Bobby
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 24 Jun 2008 Link to this post

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. James
    James avatar
    60 posts
    Member since:
    Sep 2007

    Posted 24 Jun 2008 Link to this post

    Hi,

    I'm afraid that makes it even worse. Following the way your example worked, the grid now seems to occupy the correct space (as before), but the actual visuble area showing data now only shows the header and half of the 1st line of data. It does this on both a new page and on postback.

    Regards

    Bobby
  5. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 26 Jun 2008 Link to this post

    Hi Bobby,

    Do you use the first project attached in the linked code library entry (see the part highlighted in orange from the first message in the thread)? The behavior you observed may happen if you set Height = 100% for the grid and its container control/the body of the page are not "stretched"/does not have explicitly set height.

    Best regards,
    Stephen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top