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

Can I cause a RadGrid to fit a horizontal and vertical area on my browser page

1 Answer 144 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 17 May 2011, 11:57 AM
Hi

I am trying to use a RadGrid with pagination controls in the footer.

I have been able to get the grid to fill the area I want horizontally,
and when I resize my browser window the width adjusts to fit the
available space because I have assigned a width of 100%.

However vertically is another matter.

The only way I see to be able to resize is to change the page size setting,
which I have been able to do. But having to calculate the number of
visible rows that will fit into the area horizontally seems prone to miscalculation.

Any ideas, even not using pagination, would help.

Thanks

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 18 May 2011, 12:07 PM
Hi Tim,

How to change the grid page size dynamically to occupy the vertical available space on the page or, alternatively, accommodate it without paging enabled you can see from the examples below:

http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandsplitterresizing/defaultcs.aspx?product=grid

http://www.telerik.com/community/code-library/aspnet-ajax/grid/setting-100-height-and-resize-on-container-resize-for-grid-with-scrolling-and-static-headers.aspx

Kind regards,
Sebastian
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Tim
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or