This is a migrated thread and some comments may be shown as answers.

Silverlight Chart and ItemClick Help

3 Answers 37 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 09 Jul 2012, 09:56 PM
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

3 Answers, 1 is accepted

Sort by
0
Robert
Top achievements
Rank 1
answered on 10 Jul 2012, 11:38 PM
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
0
Accepted
Giuseppe
Telerik team
answered on 11 Jul 2012, 09:17 AM
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 >>

0
Robert
Top achievements
Rank 1
answered on 11 Jul 2012, 04:14 PM
Thanks this did the trick!
Tags
Chart
Asked by
Robert
Top achievements
Rank 1
Answers by
Robert
Top achievements
Rank 1
Giuseppe
Telerik team
Share this question
or