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

RadGrid Width Problem

1 Answer 204 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 10 Aug 2011, 09:27 PM
We have a simple RadGrid on a page (static column widths) which is inside a div defined with a min-width of 1000px.  If a user opens their browser and the window is less than 1000px and then resizes the window, the grid will be fixed width and won't resize.  If the window is bigger than 1000px, the grid resizes with the window.

The problem exists in both IE and FF.  Looking at the source with IE, the style on the grid says width:100%.  If I look at it with FireFox, the RadGrid shows a fixed width (style="width:1067px").  If its bigger than 1000px, it shows as dynamic (style="width:100%").  What property controls this?  What is the proper way to fix it?

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 12 Aug 2011, 10:23 AM
Hello Jason,

Please examine the following code library which elaborates on how to resize grid on container resize when scrolling and static headers are enabled and let  me know if it helps to resolve the described problem:
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

Best wishes,
Pavlina
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
Jason
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or