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

Fit width parent DIV

1 Answer 327 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jocelyn
Top achievements
Rank 1
Jocelyn asked on 08 Mar 2012, 05:18 PM
Hi,

is there a way to fit my grid width to the parent DIV without using JS? I tried with Width="100%", but it overflow like 2-3 pixels out.

If not, how can I achieve this with JS?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 09 Mar 2012, 07:56 AM
Hello,

Try setting CSS class for RadGrid.
aspx:
<telerik:RadGrid CssClass="MyGrid" ID="RadGrid1" runat="server" />

CSS:
.MyGrid
{
 width: auto !important;
}

-Shinu.
Tags
Grid
Asked by
Jocelyn
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or