Grid Maximum Height

6 posts, 0 answers
  1. Erwin
    Erwin avatar
    74 posts
    Member since:
    Apr 2009

    Posted 03 Nov 2010 Link to this post

    Hello Everyone

    I would like to ask if their is a possibility for the grid to have a Maximum Height?

    I have a grid with a specific Height and not a scroll height. Resizing and Scrolling is enabled in the grid. My problem occur when I re size a certain column, the header will wrap.  When the header wrap and occupy another space in the header part, the header height changes and my grid change its height too.

    Is there a way to disable the resize of the height of the grid when we resize a column with a long header?  also at a certain point, if the paging(not the paging size) is greater than one the pager occupies and additional 3 pixel. (skin=webblue)
  2. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 08 Nov 2010 Link to this post

    Hi Erwin,

    I recommend that you examine Height vs. ScrollHeight help topic and let me know if it is useful for you.

    Best wishes,
    Pavlina
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Erwin
    Erwin avatar
    74 posts
    Member since:
    Apr 2009

    Posted 09 Nov 2010 Link to this post

    Thanks for the Reply

    I am now using Height but their is a design problem....
    During loading of the page, their is a flicker on the height. The paging will go to the center then after go to the bottom. its like their is an initialization of its height around 300-400 px.

    also.... when i re size the header example the header title is "Selected Company" , resizing it to a smaller column will result to

    Selected
    Company

    and the whole grid height adjust and the height of the grid is now increased
    I tried refreshing the grid then the grid height is back to normal.???
    is their a possibility to set grid not to adjust its height.

    thanks
  4. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 09 Nov 2010 Link to this post

    Hello Erwin,

    I am afraid that based on the provided information it is hard to determine the exact cause for the problems you are facing. Could you paste your aspx and code-behind (please, use the code-formatter tool of the ticket editor) or open a formal support ticket and send us a simple working project where these problems can be observed. We will review them locally and advise you further.

    Greetings,
    Pavlina
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Grant
    Grant avatar
    12 posts
    Member since:
    Aug 2011

    Posted 23 Nov 2016 in reply to Erwin Link to this post

    Hi Erwin,

     

    I realise it was 6 years ago but did you ever resolve the "initial height" problem of the radgrid. My radgrid has height=100% to fill the remaining space on the page but during page load it displays for a few seconds with a heights of around 400px.

    I have the same issue and can't find any solution for it in the forums. It's tricky to explain.

  6. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 25 Nov 2016 Link to this post

    Hello,

    I suppose that the height in your case is around 400px because you have scrolling enabled which makes the grid data div to be 300px by default plus grid header and pager it becomes almost 400px. If this is case and you want to make the grid 100% height and resize it based on the browser window size or depending on the container in which it is placed I recommend you examine the code library below where detailed information on the subject is provided:
    http://www.telerik.com/support/code-library/setting-radgrid's-height-in-percents

    Regards,
    Pavlina
    Telerik by Progress
    Telerik UI for ASP.NET AJAX is ready for Visual Studio 2017 RC! Learn more.
Back to Top