Hi
I have a grid with a mastertableview and one detail table. I would like to put the detail table width as large as the mastertableview and aligne with the mastertableview. If the mastertableview start at x=0 then I want my detailtable start at x=0 and the right side finish at the same x also
Thanks in advance
I have a grid with a mastertableview and one detail table. I would like to put the detail table width as large as the mastertableview and aligne with the mastertableview. If the mastertableview start at x=0 then I want my detailtable start at x=0 and the right side finish at the same x also
Thanks in advance
4 Answers, 1 is accepted
0

Princy
Top achievements
Rank 2
answered on 24 Sep 2008, 05:24 AM
Hello Myriam,
You can set the left margin and the width of the DetailTable to match with the MasterTable as shown in the code below.
aspx:
css:
Thanks
Princy.
You can set the left margin and the width of the DetailTable to match with the MasterTable as shown in the code below.
aspx:
<DetailTables> |
<telerik:GridTableView CssClass="MyDetail" DataSourceID="SqlDataSource1" runat="server"> |
........ |
css:
<head runat="server"> |
<style type="text/css"> |
.MyDetail |
{ |
position:relative; |
left:-25px; |
width:100%; |
} |
</style> |
</head> |
Thanks
Princy.
0

Myriam
Top achievements
Rank 1
answered on 24 Sep 2008, 02:50 PM
Hello Princy
Seems like my problem is somewhere else.
I have 2 maskedcolumn. It seems that the are taking space in the detail table as if there were visible. I can't take off those columns as I needed them in ItemDatabound event.
Could you please tell me how to resolve this problem?
Thanks in advance
Seems like my problem is somewhere else.
I have 2 maskedcolumn. It seems that the are taking space in the detail table as if there were visible. I can't take off those columns as I needed them in ItemDatabound event.
Could you please tell me how to resolve this problem?
Thanks in advance
0

Myriam
Top achievements
Rank 1
answered on 24 Sep 2008, 07:37 PM
Hello Princy
I put a tablelayout in my mastertableview
I put a tablelayout in my mastertableview
<
MasterTableView TableLayout="Auto"
I also put it to my detail table
<
telerik:GridTableView TableLayout="Auto"
I also put the detail class as you told me.
The detail's left side is almost at the same place as the MasterTableView (and I know that I have to play with the left:-25px; in the detail class)
But the detail's right side is far from the right end of the mastertableview even if I play with the width of my detail table...
why can't I make it large as the mastertableview?
0

Princy
Top achievements
Rank 2
answered on 25 Sep 2008, 04:46 AM
Hello Myriam,
In addition to the above code i provided try setting the width of the detail table to the same width as the master table, specified in pixels as shown below.
aspx:
Princy.
In addition to the above code i provided try setting the width of the detail table to the same width as the master table, specified in pixels as shown below.
aspx:
<telerik:RadGrid ID="RadGrid1" Skin="Office2007" DataSourceID="SqlDataSource1" runat="server"> |
<MasterTableView DataSourceID="SqlDataSource1" Width="1110px"> |
<DetailTables> |
<telerik:GridTableView CssClass="MyDetail" Width="1110px" DataSourceID="SqlDataSource1" runat="server"> |
.... |
Princy.