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

Sharepoint 2010 with RadChart issues

1 Answer 21 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 22 Nov 2011, 10:29 PM
I am having issues trying to add a RadChart to a Sharepoint 2010 webpart control.

I found this telerik forum post and have followed the directions so far, but there is a bad link in this post and it seems that this is where I'm stuck. 

I am getting this error from the server:

Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration.


Snippets from my web.config: 
    <httpHandlers>
      <add verb="*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" />
      <add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI" validate="false" />
    </httpHandlers>

    <httpModules>
      <add name="Session" type="System.Web.SessionState.SessionStateModule" />
    </httpModules>

    <SafeControls>
     ...
      <SafeControl Assembly="Telerik.Web.UI" Namespace="Telerik.Charting" TypeName="*" Safe="True" />
      <SafeControl Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TypeName="*" Safe="True" />
    </SafeControls>
    <pages enableSessionState="true" enableViewState="true" enableViewStateMac="true" validateRequest="false" pageParserFilterType="Microsoft.SharePoint.ApplicationRuntime.SPPageParserFilter, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=xxxxxxxxxxxxxxxxxxxxxxxx" asyncTimeout="7"  enableEventValidation="true">

Snippets from my ascx webpart page:
<%@ Register Assembly="Telerik.Web.UI, Version=2010.3.1317.35, Culture=neutral, PublicKeyToken=xxxxxxxxxxxxxxxxxxxxxx"
    Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="Telerik.Web.UI, Version=2010.3.1317.35, Culture=neutral, PublicKeyToken=xxxxxxxxxxxxxxxxxxxxx"
    Namespace="Telerik.Charting" TagPrefix="telerik" %>
<telerik:RadChart ID="RadChart1" runat="server">
    <PlotArea>
        <XAxis MaxValue="5" MinValue="1" Step="1">
        </XAxis>
        <YAxis MaxValue="25" Step="5">
        </YAxis>
        <YAxis2 MaxValue="5" MinValue="1" Step="1">
        </YAxis2>
    </PlotArea>
    <Series>
        <telerik:ChartSeries Name="Series 1" Type="Pie">
            <Appearance LegendDisplayMode="ItemLabels">
            </Appearance>
            <Items>
                <telerik:ChartSeriesItem YValue="23" Name="jim">
                </telerik:ChartSeriesItem>
                <telerik:ChartSeriesItem YValue="24" Name="pie">
                </telerik:ChartSeriesItem>
                <telerik:ChartSeriesItem YValue="19" Name="chart">
                </telerik:ChartSeriesItem>
                <telerik:ChartSeriesItem YValue="50" Name="test">
                </telerik:ChartSeriesItem>
            </Items>
        </telerik:ChartSeries>
    </Series>
</telerik:RadChart>

Is there an updated link to AdvancedSessionState or can someone tell me if something is wrong in what I'm doing?

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 25 Nov 2011, 03:07 PM
Hi Jim,

This is the topic with broken link that was mentioned in the forum post. Let us know if you need further help with this.

All the best,
Evgenia
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Chart (Obsolete)
Asked by
Jim
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or