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

How do you indent a child grid from the master grid?

2 Answers 122 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 06 Aug 2008, 02:03 PM
Good day,

I'm using version 2008.1.619.35 of the Asp.NET Ajax grid.  I'm trying to figure if there is a way to indent the child from the master grid.  I'm using the Sunset theme within my master grid.  Right now the child grid will not go beyond the borders of the master grid.

Thanks.

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 07 Aug 2008, 06:51 AM
Hi Twalker,

You can set the CssClass property of the child table to a CssClass with a margin-left Css selector set (you can also use the !important keyword to make sure the style is applied).


<head runat="server"
    <title>Untitled Page</title> 
     
    <style type="text/css" > 
      .Class1 
      { 
       margin-left: 200px !important; 
      } 
    </style> 
</head> 

               <DetailTables> 
                      <telerik:GridTableView   runat="server"  CssClass="Class1" DataSourceID="SqlDataSource1" > 
                         <Columns> 
                         .... 
                             ... 
                          
                         </Columns> 
                       
                      </telerik:GridTableView> 
                    </DetailTables> 


Thanks
Shinu.
0
Accepted
Dimo
Telerik team
answered on 07 Aug 2008, 12:26 PM
Hi Tom,

If I understand you correctly, you want the right edge of the detail tableviews to end beyond the right edge of the master table. If this is the case, then please use


 
.RadGrid .DetailTable_Sunset 
    position:relative
    left:30px
 
.DetailTable_Sunset 
    background:#f4ede1


Kind regards,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Dan
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Dimo
Telerik team
Share this question
or