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

Grid Maximum Height

5 Answers 139 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Erwin
Top achievements
Rank 1
Erwin asked on 03 Nov 2010, 10:08 AM
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)

5 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 08 Nov 2010, 01:07 PM
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
0
Erwin
Top achievements
Rank 1
answered on 09 Nov 2010, 06:48 AM
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
0
Pavlina
Telerik team
answered on 09 Nov 2010, 11:24 AM
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
0
Grant
Top achievements
Rank 1
answered on 24 Nov 2016, 12:56 AM

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.

0
Pavlina
Telerik team
answered on 25 Nov 2016, 02:54 PM
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.
Tags
Grid
Asked by
Erwin
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Erwin
Top achievements
Rank 1
Grant
Top achievements
Rank 1
Share this question
or