Tooltips in Hierarchical Grids

6 posts, 0 answers
  1. Omarr
    Omarr avatar
    24 posts
    Member since:
    Sep 2008

    Posted 27 Feb 2009 Link to this post

    I have a hierarchical grid with an image button as the first column on both parent and child. Now I want to show a tooltip , which is a usercontrol with a databound grid inside and couple of labels.  This grid inside a usercontrol is populated based on the ID of the row of the grid where the image button is clicked. Also the image button sends 2 other values which updates the text of the label controls. Child grid also has an image button which when clicked, pop ups the same user control and sends the ID to the popup, populates the grid inside and sends 2 other values which updates the text in the label. How do I achieve this? Don't have a working solution, so guide me with the working sample code. Thanks.
  2. Omarr
    Omarr avatar
    24 posts
    Member since:
    Sep 2008

    Posted 03 Mar 2009 Link to this post

  3. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 04 Mar 2009 Link to this post

    Hello Omarr,

    You can display a window rather than a tooltip, on clicking the imagebutton in the grid, as a tooltip is generally displayed on mouse over. Check out the demo link given below which you may find helpful provides an example of displaying a window on click of a button, how to keyvalues are passed to the the new window and also retrieve cell values from the grid source which correspond to the keyvalue and display them in textboxes.
    Window Editing

    Hope this helps...

  4. Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 04 Mar 2009 Link to this post

    Hi Omarr,

    The easiest way to tooltipify a hierarchical grid is by using a separate tooltip in an item template. You can put the user control directly in the tooltip and populate it with data in the item databound event.

    For your convenience I attached a sample demo which can be used as a start point for your implementation. In case you need further assistance, please prepare a sample, fully runnable demo which shows your configuration, open a new support ticket and send it to me along with detailed explanations. Once I receive it and I have a better understanding on your exact setup I will do my best to help.

    Best wishes,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. Steven
    Steven avatar
    2 posts
    Member since:
    Jul 2011

    Posted 14 Jul 2011 Link to this post

    I need to do the same thing but instead of text, load a custom control. What is the best way?
  6. Marin Bratanov
    Marin Bratanov avatar
    3908 posts

    Posted 19 Jul 2011 Link to this post

    Hi Steven,

      You can examine the project Svetlina attached to the previous post 2 years ago and use the same appraoch, just declare the markup between its tags and not in the Text property. This, however, would weigh down the markup, so you could also use the RadToolTipManager and its OnAjaxUpdate event to load a user control dynamically inside the tooltip (please examine this online demo for a better view of the LOD functionality).

    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top