Telerik SPRadChart Web Part on SharePoint 2010

4 posts, 0 answers
  1. David
    David avatar
    8 posts
    Member since:
    Sep 2011

    Posted 02 Jan 2012 Link to this post

    Hello,
    I have installed the 2011 Q3 SAK on my SP2010 dev farm and I can use the grids etc but adding the Telerik SPRadChart Web Part gives me:

    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; InfoPath.3)
    Timestamp: Mon, 2 Jan 2012 09:05:49 UTC

    Message: Unhandled Error in Silverlight Application 
    Code: 2104    
    Category: InitializeError       
    Message: 2104 An error has occurred.     

    Line: 789
    Char: 5
    Code: 0
    URI: http://devsrv03/sites/test/SitePages/test.aspx

    I have checked that my webapp have the mime types.

    This is from the source of the page:
    <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="90%" height="90%">
        <param name="source" value="/_catalogs/masterpage/SPRadChart.xap" />
        <param name="autoUpgrade" value="True" />
        <param name="minRuntimeVersion" value="4.0.50401" />
        <param name="onError" value="onSilverlightError" />
        <param name="background" value="white" />
        <param name="initParams" value="SiteUrl=http://devsrv03/sites/test,DisplayLegend=True,LegendItemMarkerShape=Square,LegendPosition=Right,ChartTitle=RadChart,MarkedZones=,ColorPalette=,EnableAnimations=True,ItemWidthPercent=80,ItemOverlapPercent=0,LabelFormatBehavior=HumanReadable,NoDataString=No Data,EnableLogarithmicScale=False,EnableHorizontalGridlines=True,EnableHorizontalMinorGridlines=False,EnableHorizontalStriplines=True,EnableVerticalGridlines=False,EnableVerticalStriplines=False,EnableSelection=False,EnableCustomGridline=False,AxisXLayoutMode=Auto,AxisXLabelStep=1,AxisXLabelLevelCount=1,AxisXLabelRotationAngle=0,AxisXTicksDistance=50,AxisYExtendDirection=Smart,ListId=00000000-0000-0000-0000-000000000000,SeriesDefinitions=,MS.SP.url=http://devsrv03/sites/test" />
        <a href="http://go.microsoft.com/fwlink/?LinkID=149156&;v=4.0.50826.0" style="text-decoration:none">
          <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none" />
        </a>
      </object>

    Do you have any other suggestions how to fix this issue?

    Thanks,
    David


  2. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 02 Jan 2012 Link to this post

    Hi David,

    Could it be that the path to the xap file in the test.aspx cannot be properly resolved inside the Sharepoint app?

    Here's the article I got that as a hint:
    http://grekai.wordpress.com/2011/04/18/silverlight-runtime-error2104initializeerror/ 

    Kind regards,
    Erjan Gavalji
    the Telerik team

    Learn how the Telerik controls can be integrated in SharePoint 2007/2010 from this resource. To watch them in action, explore our online SharePoint 2010 demo site.

  3. David
    David avatar
    8 posts
    Member since:
    Sep 2011

    Posted 02 Jan 2012 Link to this post

    This is the reason - but how can I edit this path? I just installed the SAK, activated the feature, added the webpart. What else do I need to do?

    Edit: I can get the chart to work if I copy the html pasted in OP and create custom aspx page in Designer with this code and type the full path to the .xap file. 
  4. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 05 Jan 2012 Link to this post

    Hi David,

    Please accept my apology for the delayed response. Unfortunately we cannot be sure what is causing the initial issue in your case. When you install the 2011 Q3 SAK all you have to do is activate the feature and add the web part to your page.

    The SPRadChartWebPart SPRadChart WebPart feature when activated basically adds the SPRadChart.xap to_catalogs/masterpage. And the _catalogs/masterpage/SPRadChart.xap url is used when you create a Telerik SPRadChart Web Part to set the path to the Silverlight applicaiton xap file. So if your page can't find this xap file, you can look for it using this url - _catalogs/masterpage/SPRadChart.xap, to see if it is available in your SP site. If this url doesn't give you access to the SPRadChart.xap file, the RadChart web part won't work on your page.

    Also, I am not sure what you mean when you say that you type the full path to the .xap file and create the WebPart in a custom page using SPDesigner. Can you please elaborate on that?

    All the best,
    Tina Stancheva
    the Telerik team
    Learn how the Telerik controls can be integrated in SharePoint 2007/2010 from this resource. To watch them in action, explore our online SharePoint 2010 demo site.
Back to Top