This is a migrated thread and some comments may be shown as answers.
RadChart - Silverlight
1 Answer 64 Views
This is a migrated thread and some comments may be shown as answers.
Jason Heine
Top achievements
Rank 1
Jason Heine asked on 20 Jan 2011, 10:55 PM
Hello,

Your example that you have on the demo site is for silverlight 3, which uses:

<asp:Silverlight ID="Xaml1" runat="server" Source="~/Chart/Examples/Silverlight/RadChart.xap"
MinimumVersion="2.0.30728.0" Width="100%" Height="100%" OnPluginLoaded="pluginLoaded" />

However, silverlight 4 uses:

<object data="data:application/x-silverlight-2," type="application/x-silverlight-2"
        width="100%" height="100%">
        <param name="source" value="../../ClientBin/Reports.xap" />

Can you provide an example using silverlight 4 with this example:

http://demos.telerik.com/aspnet-ajax/chart/examples/silverlight/defaultcs.aspx

I also need to programmatically pass in values to the chart for different details.

Thanks,

Jason

1 Answer, 1 is accepted

Sort by
0
Accepted
Evgenia
Telerik team
answered on 26 Jan 2011, 08:49 AM
Hi Jason,

You can find a sample project attached with the requirements you have. Here are some tips about the project:
1. As there is no way to wire to OnPluginLoaded event in <object> tag you should wire to OnLoad event in parameter like this:
<param name="onload" value="onSilverlightLoaded" />
2. Instead of calling the sender.get_element() you should call getHost() method:
function onSilverlightLoaded(sender, args) {
           silverlightControl = sender.getHost();
       }

Greetings,
Evgenia
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Asked by
Jason Heine
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or