FromCode , Show and codebehind

4 posts, 0 answers
  1. Luca
    Luca avatar
    13 posts
    Member since:
    Dec 2008

    Posted 20 Apr 2010 Link to this post

    I set the

    ShowEvent="FromCode" 

    and now I'm calling the tooltip with .Show() method, but I'm missing something : where can I put my tooltip-populating code,in the codebehind (no js) ?

    thanks
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 20 Apr 2010 Link to this post

    Hello Luca,

    Call the Show() method of the RadToolTip control in order to show from code behind.

    C#:
     
    RadToolTip1.Show(); 


    Regards,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Luca
    Luca avatar
    13 posts
    Member since:
    Dec 2008

    Posted 20 Apr 2010 Link to this post

    But you didn't respond to my questions : where can I put my code ?!
  5. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 23 Apr 2010 Link to this post

    Hello Luca,

    When you have ShowEvent="FromCode" you should programmatically show the tooltip. This can be done both on the client and on the server as explained below:

    1) To show the tooltip on the client you should reference the tooltip through the method $find and call its method show(). Note that javascript is case sensitive and the method should be spelled with in lower case.

    2) To show the tooltip from the server you should call its server method Show() as Princy also explained.

    All the best,
    Svetlina
    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