I am using telerik RadGrid inside a user control. When I use the user control inside a normal ASP.NET page, I am able to see the full functionality of the telerik radGrid such as colors, header column click and so on.
When I move the code to a web part and deploy on the SharePoint site, I lose all the functionality and formatting. It appears to me that it is not reading any CSS or JavaScript at all.
I have deployed Telerik.Web.UI dll to the GAC. It's version # 2009.3.1103.20
What am I doing wrong?
Please help!
Entry at the top of my control.acsx file.
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="MyControl1.ascx.cs" Inherits="_controls_MyControl" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<telerik:RadGrid ID="uiSignInGrid" runat="server" AutoGenerateColumns="False" GridLines="None">
In my master page for the SharePoint site, I have added links to all desired files.
<link href="/_layouts/global/css/global.css" rel="stylesheet" type="text/css" />
<link href="/_layouts/global/radcontrols/Dock/Dock.MyApp.css" rel="stylesheet" type="text/css" />
<link href="/_layouts/global/radcontrols/Grid/Grid.MyApp.css" rel="stylesheet" type="text/css" />
<link href="/_layouts/global/radcontrols/TabStrip/TabStrip.MyApp.css" rel="stylesheet" type="text/css" />
<link href="/_layouts/global/radcontrols/TabStrip/TabStrip.ViewEdit.css" rel="stylesheet" type="text/css" />
<link href="/_layouts/global/radcontrols/ToolTip/ToolTip.MyApp.css" rel="stylesheet" type="text/css" />
<link href="/_layouts/global/radcontrols/ToolTip/ToolTip.MyApp_RollOver.css" rel="stylesheet" type="text/css" />
My web.config for the SharePoint site, contains following entries in their respective places.
Added following entries to <
configSections
>
<
sectionGroup
name
=
"system.web.extensions"
type
=
"System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
>
<
sectionGroup
name
=
"scripting"
type
=
"System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
>
<
section
name
=
"scriptResourceHandler"
type
=
"System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
requirePermission
=
"false"
allowDefinition
=
"MachineToApplication"
/>
<
sectionGroup
name
=
"webServices"
type
=
"System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
>
<
section
name
=
"jsonSerialization"
type
=
"System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
requirePermission
=
"false"
allowDefinition
=
"Everywhere"
/>
<
section
name
=
"profileService"
type
=
"System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
requirePermission
=
"false"
allowDefinition
=
"MachineToApplication"
/>
<
section
name
=
"authenticationService"
type
=
"System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
requirePermission
=
"false"
allowDefinition
=
"MachineToApplication"
/>
<
section
name
=
"roleService"
type
=
"System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
requirePermission
=
"false"
allowDefinition
=
"MachineToApplication"
/>
</
sectionGroup
>
</
sectionGroup
>
</
sectionGroup
>
Added following entry to <
SafeControls
>
<
SafeControl
Assembly
=
"Telerik.Web.UI, Version=2009.3.1103.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
Namespace
=
"Telerik.Web.UI"
TypeName
=
"*"
Safe
=
"True"
/>
Following entry from httphandler
<
httpHandlers
>
<
remove
verb
=
"*"
path
=
"*.asmx"
/>
<
add
verb
=
"*"
path
=
"*.asmx"
validate
=
"false"
type
=
"System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
verb
=
"*"
path
=
"*_AppService.axd"
validate
=
"false"
type
=
"System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
verb
=
"GET,HEAD"
path
=
"ScriptResource.axd"
type
=
"System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
validate
=
"false"
/>
<
remove
verb
=
"GET,HEAD,POST"
path
=
"*"
/>
<
add
verb
=
"GET,HEAD,POST"
path
=
"*"
type
=
"Microsoft.SharePoint.ApplicationRuntime.SPHttpHandler, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
/>
<
add
verb
=
"OPTIONS,PROPFIND,PUT,LOCK,UNLOCK,MOVE,COPY,GETLIB,PROPPATCH,MKCOL,DELETE,(GETSOURCE),(HEADSOURCE),(POSTSOURCE)"
path
=
"*"
type
=
"Microsoft.SharePoint.ApplicationRuntime.SPHttpHandler, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
/>
<
add
verb
=
"*"
path
=
"Reserved.ReportViewerWebControl.axd"
type
=
"Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
/>
<
add
path
=
"Telerik.Web.UI.WebResource.axd"
verb
=
"*"
type
=
"Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2009.3.1103.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
validate
=
"false"
/>
</
httpHandlers
>
Added an entry in the httpModules
<
add
name
=
"ScriptModule"
type
=
"System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
Following is the handler entry
<
handlers
>
<
remove
name
=
"WebServiceHandlerFactory-Integrated"
/>
<
remove
name
=
"ScriptHandlerFactory"
/>
<
remove
name
=
"ScriptHandlerFactoryAppServices"
/>
<
remove
name
=
"ScriptResource"
/>
<
add
name
=
"ScriptHandlerFactory"
verb
=
"*"
path
=
"*.asmx"
preCondition
=
"integratedMode"
type
=
"System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
name
=
"ScriptHandlerFactoryAppServices"
verb
=
"*"
path
=
"*_AppService.axd"
preCondition
=
"integratedMode"
type
=
"System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
<
add
name
=
"ScriptResource"
verb
=
"GET,HEAD"
path
=
"ScriptResource.axd"
preCondition
=
"integratedMode"
type
=
"System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"
/>
</
handlers
>
Added a system.webserver section.
<
system.webServer
>
<
validation
validateIntegratedModeConfiguration
=
"false"
/>
<
modules
>
<
remove
name
=
"ScriptModule"
/>
<
add
name
=
"ScriptModule"
preCondition
=
"managedHandler"
type="System.Web.Handlers.ScriptModule,
System.Web.Extensions,
Version
=
3
.5.0.0,
Culture
=
neutral
,
PublicKeyToken
=
31BF3856AD364E35
"/>
</
modules
>
<
handlers
>
<
remove
name
=
"WebServiceHandlerFactory-Integrated"
/>
<
remove
name
=
"ScriptHandlerFactory"
/>
<
remove
name
=
"ScriptHandlerFactoryAppServices"
/>
<
remove
name
=
"ScriptResource"
/>
<
add
name
=
"ScriptHandlerFactory"
verb
=
"*"
path
=
"*.asmx"
preCondition
=
"integratedMode"
type="System.Web.Script.Services.ScriptHandlerFactory,
System.Web.Extensions,
Version
=
3
.5.0.0,
Culture
=
neutral
,
PublicKeyToken
=
31BF3856AD364E35
"/>
<
add
name
=
"ScriptHandlerFactoryAppServices"
verb
=
"*"
path
=
"*_AppService.axd"
preCondition
=
"integratedMode"
type="System.Web.Script.Services.ScriptHandlerFactory,
System.Web.Extensions,
Version
=
3
.5.0.0,
Culture
=
neutral
,
PublicKeyToken
=
31BF3856AD364E35
"/>
<
add
name
=
"ScriptResource"
preCondition
=
"integratedMode"
verb
=
"GET,HEAD"
path
=
"ScriptResource.axd"
type="System.Web.Handlers.ScriptResourceHandler,
System.Web.Extensions,
Version
=
3
.5.0.0,
Culture
=
neutral
,
PublicKeyToken
=
31BF3856AD364E35
" />
</
handlers
>
</
system.webServer
>