Tooltip with javascript function reference

3 posts, 1 answers
  1. Bryan
    Bryan avatar
    28 posts
    Member since:
    Oct 2014

    Posted 11 Feb 2015 Link to this post

    So, I'm attempting to insert a javascript defined elsewhere on a click event in the tooltip as follows:

    '<div class="col-md-2"><a onclick=\'jumpme(2,"' + data[0].id+ '");\'>' + data[0].LastName + ' test</a></div>';

    in  a content function. If I replace 'jumpme' and the first argument with an alert box, it works fine, but I'm trying to figure out how I can get a function defined elsewhere to fire. The console says the function is undefined, but if I reference it in the row template of the grid that uses this tooltip, it works as expected. How can I get this to fire?
    Thanks.
  2. Answer
    Eyup
    Admin
    Eyup avatar
    3015 posts

    Posted 13 Feb 2015 Link to this post

    Hello Bryan,

    The issue may be related to the exact quotes configuration. Can you please check the following sample and configure it depending on your custom scenario?
    http://dojo.telerik.com/UGATU/7

    Regards,
    Eyup
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Bryan
    Bryan avatar
    28 posts
    Member since:
    Oct 2014

    Posted 17 Feb 2015 in reply to Eyup Link to this post

    Thanks, Eyup. That really helped.
Back to Top