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

How to restrict radgrid

2 Answers 43 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Søren
Top achievements
Rank 1
Søren asked on 29 Sep 2008, 11:50 AM
Hi there

I have a problem, I have a RadGrid with autogeneration columns.

But no matter what i do, it completly ignores the with i am setting.

I have tried, to set it directly on on RadGrid control, on the <td> it is in, on a <div> i put outside the RadGrid, even on the table, or the main table of the website.

It simply ignores it, how can i restrict the width ?
It completly ruins the webdesign by ignoring it.

The problem is in both Internet Explorer 7, and Firefox 3.0.3.

Best regards
Søren Reinke

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 29 Sep 2008, 01:21 PM
Hello Soren,

Try setting the TableLayout property of the grid as Fixed which is shown in the code below.
aspx:
 <telerik:RadGrid ID="RadGrid1" Width="800px" runat="server" AutoGenerateColumns="False" > 
     <MasterTableView TableLayout="Fixed" > 
         .... 
             

Princy.
0
Søren
Top achievements
Rank 1
answered on 29 Sep 2008, 01:27 PM
Hi Princy

Thanks a lot for the tip, that was the solution :)

/Søren
Tags
Grid
Asked by
Søren
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Søren
Top achievements
Rank 1
Share this question
or