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

Grid Parent Element width problem

1 Answer 112 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sacha
Top achievements
Rank 1
Sacha asked on 06 May 2011, 02:28 PM

Hi,

It seems no matter what element width I set on my RadGrid parent element, the RadGrid forces the parent elements width to be 100%
I have overridden the rgGridData class and it has no effect, the top-level parent element always expands.

Sample code below:

<table border="1" width="500px;">
    <tr>
        <td>
                <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
                </telerik:RadScriptManager>
                <telerik:RadGrid ID="rGridSearchResults" Width="500px" runat="server" Height="500px">
                    <ClientSettings Scrolling-AllowScroll="true" Scrolling-ScrollHeight="500px">
                    </ClientSettings>
                    <MasterTableView Width="500px" Height="500px">
                        <NoRecordsTemplate>
                            No Results</NoRecordsTemplate>
                    </MasterTableView>
                </telerik:RadGrid>
        </td>
    </tr>
</table>

Any ideas?

1 Answer, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 12 May 2011, 08:26 AM
Hi Sacha,

I tried to reproduce the described behavior but to no avail. Have a look at the atached page the grid there has 500px width (as well as the table element). Are you sure you do not have some other styles on the page that override those settings?

Greetings,
Marin
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
Sacha
Top achievements
Rank 1
Answers by
Marin
Telerik team
Share this question
or