Silverlight Chart and ItemClick Help

4 posts, 1 answers
  1. John
    John avatar
    22 posts
    Member since:
    Jan 2011

    Posted 09 Jul 2012 Link to this post

    Hello -

    I am trying to fire a JavaScript function from my Silverlight Radchart.  I currently have it firing an item command using this reference:

    http://www.telerik.com/help/silverlight/radchart-features-interactivity.html

    But now I would like it to run a JavaScript which will open a radwindow with a URL defined in this click event.

    Is this possible?  I did not see any specific documentation for this.

    Ideally I would like to be able to call a JavaScript function similar to your AJAX Grid examples :

    String
    .Format("return ShowMyPopUp('{0}','{1}');", e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("SomeIdentifier"), e.Item.ItemIndex)

    Thanks
  2. John
    John avatar
    22 posts
    Member since:
    Jan 2011

    Posted 10 Jul 2012 Link to this post

    Anyone can point me in the right direction?  I have a time sensitive project and would really like to be able to enable this functionality for my client.

    Thanks
  3. DevCraft banner
  4. Answer
    Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 11 Jul 2012 Link to this post

    Hello John,

    You can use the HtmlPage.Window.Invoke(...) method to call JavaScript function from Silverlight managed code -- more information can be found here.

    Hope this helps.


    Regards,
    Giuseppe
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  5. John
    John avatar
    22 posts
    Member since:
    Jan 2011

    Posted 11 Jul 2012 Link to this post

    Thanks this did the trick!
Back to Top