Missing HierarchySettings on DetailTables

4 posts, 1 answers
  1. Jan Pfeffer
    Jan Pfeffer avatar
    55 posts
    Member since:
    Aug 2006

    Posted 19 Mar 2010 Link to this post

    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.
  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 23 Mar 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jan Pfeffer
    Jan Pfeffer avatar
    55 posts
    Member since:
    Aug 2006

    Posted 24 Mar 2010 Link to this post

    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.
  5. Answer
    Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 25 Mar 2010 Link to this post

    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.
Back to Top