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

Missing HierarchySettings on DetailTables

3 Answers 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jan Pfeffer
Top achievements
Rank 1
Jan Pfeffer asked on 19 Mar 2010, 09:57 AM
Hey at Telerik

I would like too know if there is a way to set the tooltip text for the expandcolumn on detailTables?

The RadGrid has HierarchySettings but no such attribute exists on the detailTables or MasterTable, a suggestion to an improvement perhaps.

+ Expand Customer
    + Expand Orders
        + Expand OrderLines

Sincerly

Jan.

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 23 Mar 2010, 10:46 AM
Hello Jan,

You can set the tooltip for the GridExpandColumn as shown in the code below:
C#:
protected void RadGrid1_PreRender(object sender, EventArgs e)  
    {  
        RadGrid1.HierarchySettings.ExpandTooltip = "My custom text";  
    }

Additionally, you could also refer the following help article which explains how to localize tooltips in Grid:
http://www.telerik.com/help/aspnet-ajax/grdlocalizingtootips.html

I hope this helps.

Regards,
Pavlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Jan Pfeffer
Top achievements
Rank 1
answered on 24 Mar 2010, 09:21 AM
Hello Pavlina

I have changed the  HierarchySettings on the RadGrid.
<HierarchySettings ExpandTooltip="Expand orders" CollapseTooltip="Collapse orders" />

What i need is a way to set the tooltips on DetailTables.

The HierarchySettings above sets tooltips for all tables in the grid, MasterTable and DetailTables.

I wan't to set different Expand- and CollapseTooltips for my different DetailTables

For instance.

(0)       My MasterTable has Customers.
(0,0)    DetailTable has Orders            Here i have tooltips as described above i HierarchySettings.

(0,0,0) DetailTable under Orders DetailTable has OrderLines

This is where my problem comes. Here i would like ExpandTooltip and CollapseTooltip to be
"Expand Orderlines" and "Collapse orderlines" and not "Expand orders" and "Collapse orders".

I hope this shows my problem a little clearer.

Sincerly Jan.
0
Accepted
Pavlina
Telerik team
answered on 25 Mar 2010, 03:55 PM
Hi Jan,

The RadGrid.Items collection contains all items from all tables in the hierarchical structure of Telerik RadGrid. By simply looping through the collection you can access all data-bound items, their controls and so on.

More info is available here:
Traversing detail tables/items in Telerik RadGrid

Regards,
Pavlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Jan Pfeffer
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Jan Pfeffer
Top achievements
Rank 1
Share this question
or