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

ExpandCollapse in DetailTable Caption row

3 Answers 89 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pat
Top achievements
Rank 1
Pat asked on 10 Nov 2010, 09:26 PM
Is there a way to have the ExpandCollapse Icon/Column be a part of a DetailTable's Caption row?

Looking at the example at:
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/twotablesatlevel/defaultcs.aspx
I am wondering if it would be possible to put the Icon left of the "Sales per Employee" row and the "Products" row.

This way when the user gets presented the data they would see there are related items in the Details Tables, but only see the Caption rows initially.

Thanks.

3 Answers, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 16 Nov 2010, 01:43 PM
Hi Pat,

I am pasting the answer which my colleague gave to you in the support ticket which you opened with the same questions if anyone else needs to know:

Expand/Collapse is a property of the owner item. You cannot move the button on child item. If you do that and the parent item is collapsed you will never be able to expand it and see the detail table.

"Sales per Employee" is actually the caption of table element and its rendering is controlled by the browser. 

In case you have any other questions related to that matter, please, ask them in the support ticket so we avoid double posting.

Sincerely yours,
Tsvetina
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Pat
Top achievements
Rank 1
answered on 23 Nov 2010, 07:38 PM
Thank you for the reply.  I have a question now that is on a similar subject, but slightly different.

Would it be possible to put multiple DetailTables side-by-side under the parent row instead of above and below one another.  We have DetailTables that have very few columns, but with a lot of rows and would like to be able to put the DetailTables left to right in the NestedTableView.

Thanks again for your support.
0
Tsvetina
Telerik team
answered on 26 Nov 2010, 12:27 PM
Hello Pat,

This can be achieved by first setting the approapriate width for the GridTableViews, so it does not exceed the space available and then using the following CSS rule:
<style>
    .rgDetailTable
    {
        float:left;
    }
</style>


Kind regards,
Tsvetina
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
Pat
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Pat
Top achievements
Rank 1
Share this question
or