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

Dynamic radtooltip

1 Answer 112 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Dipti
Top achievements
Rank 1
Dipti asked on 08 Dec 2008, 12:52 PM
Hi Svetlina ,

I want to implement rad tooltip within gridview and the links (<a href="#" title="xyz"> </a>) are dynamically created.

any suggestion how to do this
bcz i have not set any id to the links. and the tooltip have to fetch the records from database via any querystring.

 public string ReplaceKeyWords(Match m)
    {
      
        string s = null;

        string g = m.Value.ToString();
        s = "<a  title='ok'    href=' " + "tooltips.aspx?param=" + m.Value.ToString() + "'  ";
        if (g == "")
        {
            return s + "nothing" + ">" + "<span class=highlight>" + g + "</span>" + "</a>"; return "<span class=highlight>" + g + "</span>";

        }
        else
        {
            return s  + ">" + "<span class=highlight>" + g + "</span>" + "</a>"; return "<span class=highlight>" + g + "</span>";

        }

    }


Thanks
Chris

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 11 Dec 2008, 08:09 AM

Hi Dipti,

As far as I understood, you want to dynamically create RadToolTips for elements without an ID - if so, I suggest to use the RadToolTipManager's client-side API and create the tooltips on the client as demonstrated in this online demo.

I also suggets to examine the full source code of the demo - when you install RadControls, our online examples projects are automatically installed on your computer and you can not only examine their full source code, but also extend them further in order to meet your requirements.

You can open the demos from here:

Start\Programs\Telerik\RadControls for ASPNET AJAX\Open Sample WebSite In VisualStudio

The actual location on your hard disk is the following one:

C:\Program Files\Telerik\RadControls for ASPNET AJAX \Live Demos

Kind regards,

Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ToolTip
Asked by
Dipti
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or