Set tooltip in client side

4 posts, 1 answers
  1. July
    July avatar
    205 posts
    Member since:
    Jul 2011

    Posted 09 Oct 2012 Link to this post

    I need replace  some token in tooltip by User Name in server side.

    I use
    var mybuttonToolTip = button.get_tooltip();
    mybuttonToolTip   = mybuttonToolTip.replace("{TOKEN}", currentUserName};
    button.set_tooltip(mybuttonToolTip );  This event exist?

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

    Posted 09 Oct 2012 Link to this post

    Hi July,

    I suppose you want to set the Tooltip of RadButton in the clientside. You can use get_toolTip() and set_toolTip() functions instead of get_tooltip() and set_tooltip() functions as follows.

    JS:
    var mybuttonToolTip = button.get_toolTip();
    mybuttonToolTip = mybuttonToolTip.("{TOKEN}", currentUserName);
    button.set_toolTip(mybuttonToolTip);

    Hope this helps.

    Regards,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. July
    July avatar
    205 posts
    Member since:
    Jul 2011

    Posted 10 Oct 2012 Link to this post

    Thanks Princy,
    I had asked because I couldn't found this event in documentation
  5. Leon
    Leon avatar
    5 posts
    Member since:
    May 2012

    Posted 01 Nov 2012 Link to this post

    You can choose to view information needs to be entered in the Address text box, click on it and Push the submit button to submit the form. Check the source code to see how the actions are implemented. http://jquerytools.org/demos/validator/server-side.html

Back to Top