<
telerik:RadComboBox
ID
=
"ParentRadComboBox"
runat
=
"server"
Width
=
"590px"
Height
=
"140px"
AllowCustomText
=
"true"
MarkFirstMatch
=
"true"
EmptyMessage
=
"Type a Title"
DataValueField
=
"SerID"
DataSourceID
=
"GuideSqlDataSource"
DataTextField
=
"Title"
>
<
CollapseAnimation
Type
=
"OutQuint"
Duration
=
"200"
></
CollapseAnimation
>
</
telerik:RadComboBox
>
.Imports
Telerik.Web.UI
Partial
Class
Admin
Inherits
System.Web.UI.Page
Protected
Sub
Page_Load(
ByVal
sender
As
Object
,
ByVal
e
As
System.EventArgs)
Handles
Me
.Load
If
Not
IsPostBack
Then
RadPane11.Controls.Add(LoadControl(
"~/Admin/Insert Landmark.ascx"
))
End
If
End
Sub
Protected
Sub
RadPanelBar1_ItemClick(
ByVal
sender
As
Object
,
ByVal
e
As
Telerik.Web.UI.RadPanelBarEventArgs)
Handles
RadPanelBar1.ItemClick
Dim
ItemClicked
As
RadPanelItem = e.Item
RadPane11.Controls.Add(LoadControl(
"~/Admin/"
& ItemClicked.Text &
".ascx"
))
RadPane()
End
Sub
End
Class
Imports
Telerik.Web.UI
Partial
Class
Admin_InsertLandmark
Inherits
System.Web.UI.UserControl
Protected
Sub
Page_Load(
ByVal
sender
As
Object
,
ByVal
e
As
System.EventArgs)
Handles
Me
.Load
End
Sub
Protected
Sub
Button1_Click(
ByVal
sender
As
Object
,
ByVal
e
As
System.EventArgs)
Handles
Button1.Click
If
RadUpload1.UploadedFiles.Count > 0
Then
For
Each
f
As
UploadedFile
In
RadUpload1.UploadedFiles
Dim
landmarkname
As
String
= TextBox1.Text
Dim
landmarkaddress
As
String
= TextBox2.Text
Dim
landmarkphotourl
As
String
= f.FileName
f.SaveAs(
"D:\LandMarkImage\"
+ f.FileName)
Next
End
If
End
Sub
End
Class
<
SafeControl Assembly="Telerik.Charting" Namespace="Telerik.Charting" TypeName="*" Safe="True" />
I get the following error, The control type 'Telerik.Web.UI.RadChart' is not allowed on this page. The type is not registered as safe.
What else do I need to add in the web.config file within MOSS 2007.
In the previous releases I got the page to work with the following lines.
<
SafeControl Assembly="RadChart.Net2" Namespace="Telerik.Charting" TypeName="*" Safe="True" />
<
SafeControl Assembly="RadChart.Net2" Namespace="Telerik.WebControls" TypeName="*" Safe="True" />
Thanks
Hi Telerik,
I have been used Telerik RadChart Q1 2010 on SharePoint 2007 successfully. But, now I use Telerik RadChart Q1 2010 on SharePoint 2010, I get the following error message
The ... Web Part appears to be causing a problem. 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.
I modified my web.config as what the error say, but it doesn't help. Here is my web.config:
...
...
...
<httpHandlers>
<add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2010.1.415.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
<add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>
</httpHandlers>
...
...
...
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="Session" type="System.Web.SessionState.SessionStateModule"/>
</httpModules>
...
...
...
<pages enableSessionState="true" enableViewState="true" enableViewStateMac="true" validateRequest="false" pageParserFilterType="Microsoft.SharePoint.ApplicationRuntime.SPPageParserFilter, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" asyncTimeout="7">
I render the RadChart directly on the Page, It means Page.Controls.Add(radChart). I know I can render RadChart's Image, but it doesn't meet my requirement
So, anybody please help me to solve this problem
Thanks
Cam Mach
Bamboo Solutions Corporation