RadChart - Silverlight

Thread is closed for posting
2 posts, 1 answers
  1. Jason Heine
    Jason Heine avatar
    16 posts
    Member since:
    Apr 2010

    Posted 20 Jan 2011 Link to this post

    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
  2. Answer
    Evgenia
    Admin
    Evgenia avatar
    1437 posts

    Posted 26 Jan 2011 Link to this post

    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.
Back to Top