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

Would that be possible to Expand a DetailTable in the same column?

5 Answers 157 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pooya
Top achievements
Rank 1
Pooya asked on 07 Jul 2011, 03:59 PM
I have a RadGrid with a Nested table both of which have the same columns.

Currently when the expand column is clicked on an item of the MasterDetailView, the DetailTable is expanded but it is indented to the right.

Would that be possible to remove this indentation so that the DetailTable gets expanded on the same column?

I checked the generated html using FireFox and I saw that when a DetailTable is expanded a new row (<tr>) is inserted after the selected row. This new row has 2 columns and the detail table appear in its second column. The first column is just empty.

So, now what I'd need is to make the new row to have only 1 column rather than 2 columns.

Is my explanation understandable? 

Thanks

5 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 08 Jul 2011, 08:00 AM
Hello Pooya,

Please take a look at the following documentation  which explains the needed approach.
Aligning columns in each level of hierarchical grid.

Thanks,
Shinu.
0
Pooya
Top achievements
Rank 1
answered on 11 Jul 2011, 10:22 AM
Thanks.

I'd need to replace all the Headers of a Nested Table with a simple Caption. Would that be possible?

The reason is that all the columns headers of the nested tables are just repeat of the Main master table view columns.

Thanks

0
Shinu
Top achievements
Rank 2
answered on 11 Jul 2011, 11:11 AM
Hello Pooya,

I have found this forum which discussed similar scenario.
One Header with multiple imagebutton columns.

Thanks,
Shinu.
0
Pooya
Top achievements
Rank 1
answered on 15 Jul 2011, 11:43 AM
I managed to hide the header of the detail tables and only show the caption.

The problem now is that the detail table columns which are appearing under the master table view, do not quite align with each other.

I set the width of all columns to have fixed pixel size. it works in IE 9.0 and 8.0 but with IE 7.0 and 6.0 they don't quite align with each other.

Any advise?

I thought maybe I should set the width of my radgrid to a fixed pixel e.g. 800 so that all fit well with each other; not sure if it will work this way.

Thanks,
0
Pooya
Top achievements
Rank 1
answered on 19 Jul 2011, 03:09 PM
The approach I took, ruins exporting features of the Grid so have to avoid that.

I tried applying this so I downloaded the Northwind database:
http://www.telerik.com/help/aspnet-ajax/grid-align-columns-in-hierarchy.html

I can run this Grid using Vista skin not Excel skin (it complains that it doesn't exist) and using Vista skin the columns are not aligned at all unlike what it says in the document.

Our manager is very keen to see the Grid working when the columns are aligned. still not properly possible
Tags
Grid
Asked by
Pooya
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Pooya
Top achievements
Rank 1
Share this question
or