Tooltip and click-event on token

2 posts, 0 answers
  1. Thomas
    Thomas avatar
    1 posts
    Member since:
    Feb 2013

    Posted 22 Feb 2013 Link to this post

    Hi!

    Have af few questions about the possibilities in the AutoCompleteBox:

    1. Is it possible to get a tooltip to appear with mouse over on an token, with information about the token chosen?
    2. Is it possible to be able to clik a token to get more info on that token?

    I have not been able to find documentation about this on your site, that is why I'm asking this question in the forum.

    /Thomas
  2. Bozhidar
    Admin
    Bozhidar avatar
    1102 posts

    Posted 26 Feb 2013 Link to this post

    Hello Thomas,

    You can easily add a tooltip to the tokens using the OnClientEntryAdded event. Here's some sample code:
    function OnClientEntryAdded(sender, args) {
        args.get_entry().get_token().title = args.get_entry().get_text();
    }

    You can also handle the clicki event over a token with some jQuery:
    function OnClientLoad(sender) {
        $telerik.$(sender.get_element())
            .on("click", ".racToken", function(e) {
                var entry = $telerik.$(e.target).data().entry;
                // Get more info about the token
            });
    }

     

    All the best,
    Bozhidar
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top