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

Browser output dependent on screen resolution.

1 Answer 68 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dharmendra
Top achievements
Rank 1
Dharmendra asked on 05 Sep 2012, 11:39 AM

Using the telerik controls when we display grids we observe that there is no provision to adjust size of the grid according to the Client Browser resolution.  Please point us to a way to adjust the page size as per target browser resolution.

For e.g. see the blank space on a particular resolution in the file attached.

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 10 Sep 2012, 09:40 AM
Hi, Dharmendra.

This is not possible with Telerik Controls

You can examine grid_100_width_height.zip  which demonstrates how to configure grid to occupy 100% height of its container (or the total browser window height) with scrolling and static headers enabled. Note that if

If in your scenario you need to size RadGrid control to take up the remaining space, you need to use Javascript to calculate how much this space is and set it as a pixel height to the control. Using 100% is not suitable.

Here is a code library example, which demonstrates different ways to set height to RadGrid on the client
http://www.telerik.com/community/code-library/aspnet-ajax/grid/how-to-set-radgrid-height-client-side-with-javascript.aspx

Kind regards,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Dharmendra
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or