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

PanalBar sharepoint error

8 Answers 59 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 22 Sep 2008, 01:15 PM
Hi there,

We implemented PanelBar in sharepoint. The control renders fine but the panel doesn't open or close; Also there always a javascript error on the page due to the panel bar.
Code implemented is below
  <telerik:RadScriptManager ID="ScriptManager" runat="server" />
            <telerik:header id="Header1" runat="server" NavigationLanguage="C#" XhtmlCompliant="False"></telerik:header>
            
            <telerik:RadPanelBar runat="server" ID="RadPanelBar1" Skin="Outlook" Height="380px" ExpandMode="FullExpandedItem">
                <Items>
                    <telerik:RadPanelItem Text="Mail" ImageUrl="Img/mail.gif" Expanded="True">
                        <Items>
                            <telerik:RadPanelItem ImageUrl="Img/mailPersonalFolders.gif" Text="Personal Folders"></telerik:RadPanelItem>
                            <telerik:RadPanelItem ImageUrl="Img/mailDeletedItems.gif" Text="Deleted Items"></telerik:RadPanelItem>
                            <telerik:RadPanelItem ImageUrl="Img/mailInbox.gif" Text="Inbox"></telerik:RadPanelItem>
                            <telerik:RadPanelItem ImageUrl="Img/mailFolder.gif" Text="My Mail"></telerik:RadPanelItem>
                            <telerik:RadPanelItem ImageUrl="Img/mailSent.gif" Text="Sent Items"></telerik:RadPanelItem>
                            <telerik:RadPanelItem ImageUrl="Img/mailOutbox.gif" Text="Outbox"></telerik:RadPanelItem>
                            <telerik:RadPanelItem ImageUrl="Img/mailSearch.gif" Text="Search Folders"></telerik:RadPanelItem>
                        </Items>
                    </telerik:RadPanelItem>
                    <telerik:RadPanelItem Text="Calendar" ImageUrl="Img/calendar.gif">
                        <Items>
                            <telerik:RadPanelItem>
                                <ItemTemplate>
                                    <telerik:RadCalendar runat="server" ID="Calendar1" Skin="Outlook" style="margin: 30px auto 0" />
                                </ItemTemplate>
                            </telerik:RadPanelItem>
                        </Items>
                    </telerik:RadPanelItem>
                    <telerik:RadPanelItem Text="Contacts" ImageUrl="Img/contacts.gif">
                    <Items>
                        <telerik:RadPanelItem ImageUrl="Img/contactsItems.gif" Text="My Contacts"></telerik:RadPanelItem>
                        <telerik:RadPanelItem ImageUrl="Img/contactsItems.gif" Text="Address Cards"></telerik:RadPanelItem>
                        <telerik:RadPanelItem ImageUrl="Img/contactsItems.gif" Text="Phone List"></telerik:RadPanelItem>
                        <telerik:RadPanelItem ImageUrl="Img/contactsItems.gif" Text="Shared Contacts"></telerik:RadPanelItem>
                    </Items>
                    </telerik:RadPanelItem>
                    <telerik:RadPanelItem Text="Tasks" ImageUrl="Img/tasks.gif">
                        <Items>
                            <telerik:RadPanelItem ImageUrl="Img/tasksItems.gif" Text="My Tasks"></telerik:RadPanelItem>
                            <telerik:RadPanelItem ImageUrl="Img/tasksItems.gif" Text="Shared Tasks"></telerik:RadPanelItem>
                            <telerik:RadPanelItem ImageUrl="Img/tasksItems.gif" Text="Active Tasks"></telerik:RadPanelItem>
                            <telerik:RadPanelItem ImageUrl="Img/tasksItems.gif" Text="Completed Tasks"></telerik:RadPanelItem>
                        </Items>
                    </telerik:RadPanelItem>
                    <telerik:RadPanelItem Text="Notes" ImageUrl="Img/notes.gif">
                        <Items>
                            <telerik:RadPanelItem ImageUrl="Img/notesItems.gif" Text="My Notes"></telerik:RadPanelItem>
                            <telerik:RadPanelItem ImageUrl="Img/notesItems.gif" Text="Notes List"></telerik:RadPanelItem>
                            <telerik:RadPanelItem ImageUrl="Img/notesItems.gif" Text="Shared Notes"></telerik:RadPanelItem>
                            <telerik:RadPanelItem ImageUrl="Img/notesItems.gif" Text="Archive"></telerik:RadPanelItem>
                        </Items>                    
                    </telerik:RadPanelItem>
                    <telerik:RadPanelItem Text="Folders List" ImageUrl="Img/folderList.gif">
                        <Items>
                            <telerik:RadPanelItem ImageUrl="Img/mailOutbox.gif" Text="My Client.Net"></telerik:RadPanelItem>
                            <telerik:RadPanelItem ImageUrl="Img/mailOutbox.gif" Text="My Profile"></telerik:RadPanelItem>
                            <telerik:RadPanelItem ImageUrl="Img/mailOutbox.gif" Text="My Support Tickets"></telerik:RadPanelItem>
                            <telerik:RadPanelItem ImageUrl="Img/mailOutbox.gif" Text="My Licenses"></telerik:RadPanelItem>
                        </Items>                    
                    </telerik:RadPanelItem>
                </Items>
            </telerik:RadPanelBar>

We are using telerik version 2008.1.619.20
Javascript error:- Object doesn't support this property or method;

Thanks

8 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 22 Sep 2008, 01:17 PM
Hi Simon,

Perhaps some JavaScript file failed to load. Did you register the RadSriptManager http handler in your web.config? You can try replacing RadScriptManager with ScriptManager and see if it works.

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Simon
Top achievements
Rank 1
answered on 22 Sep 2008, 02:17 PM
We are using ScriptManager. We never quite worked with the radscriptmanager. Also the handler is registered in web.config.
0
Atanas Korchev
Telerik team
answered on 22 Sep 2008, 02:22 PM
Hi Simon,

Is there any live URL where we can see the problem? You can also check this blog post which describes how to troubleshoot web resource related issues.

Kind regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Simon
Top achievements
Rank 1
answered on 23 Sep 2008, 08:27 AM
Albert,

We found 401 error returned for the below resources

ScriptResources.axd
Telerik.Web.UI.WebResources.axd
WebResources.axd

Also given below is the web.config used

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<configuration>
  <configSections>
    <sectionGroup name="SharePoint">
      <!-- REMOVED FOR BREVITY -->
    </sectionGroup>
    <sectionGroup name="System.Workflow.ComponentModel.WorkflowCompiler" type="System.Workflow.ComponentModel.Compiler.WorkflowCompilerConfigurationSectionGroup, System.Workflow.ComponentModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
      <section name="authorizedTypes" type="System.Workflow.ComponentModel.Compiler.AuthorizedTypesSectionHandler, System.Workflow.ComponentModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    </sectionGroup>
    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
      <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
          <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere" />
          <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
          <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" />
        </sectionGroup>
      </sectionGroup>
    </sectionGroup>
  </configSections>
  <SharePoint>
    <SafeMode MaxControls="200" CallStack="true" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false">
      <PageParserPaths>
        <PageParserPath VirtualPath="/_layouts/masterpage/*" CompilationMode="Always" AllowServerSideScript="true" IncludeSubFolders="true" />
      </PageParserPaths>
    </SafeMode>
    <WebPartLimits MaxZoneParts="50" PropertySize="1048576" />
    <WebPartCache Storage="CacheObject" />
    <WebPartControls DatasheetControlGuid="65BCBEE4-7728-41a0-97BE-14E1CAE36AAE" />
    <SafeControls>
      <!-- STANDARD ENTRIES REMOVED FOR BREVITY -->
      <SafeControl Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TypeName="*" Safe="True" />
      <SafeControl Assembly="Telerik.Web.UI, Version=2008.1.619.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TypeName="*" Safe="True" />
      <SafeControl Assembly="Telerik.Web.UI, Version=2008.1.619.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.Design" TypeName="*" Safe="True" />
      <SafeControl Assembly="AjaxControlToolkit, Version=1.0.11119.20010, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" Namespace="AjaxControlToolkit" TypeName="*" Safe="True" />
    </SafeControls>
    <PeoplePickerWildcards>
      <clear />
      <add key="AspNetSqlMembershipProvider" value="%" />
    </PeoplePickerWildcards>
    <MergedActions>
      <!-- REMOVED FOR BREVITY -->
    </MergedActions>
    <BlobCache location="C:\blobCache" path="\.(gif|jpg|png|css|js)$" maxSize="10" enabled="false" />
    <RuntimeFilter Assembly="Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Class="Microsoft.Office.Server.Audience.AudienceManager" BuilderURL="audience_chooser.aspx" />
  </SharePoint>
  <system.web>
    <securityPolicy>
      <trustLevel name="WSS_Medium" policyFile="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\config\wss_mediumtrust.config" />
      <trustLevel name="WSS_Minimal" policyFile="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\config\wss_minimaltrust.config" />
    </securityPolicy>
    <httpHandlers>
      <remove verb="GET,HEAD,POST" path="*" />
      <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.1.619.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" /> 
      <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 verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
    </httpHandlers>
    <customErrors mode="Off" />
    <httpRuntime maxRequestLength="51200" />
    <authentication mode="Windows" />
    <identity impersonate="true" />
    <authorization>
      <allow users="*" />
    </authorization>
    <httpModules>
      <clear />
      <add name="SPRequest" type="Microsoft.SharePoint.ApplicationRuntime.SPRequestModule, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
      <add name="OutputCache" type="System.Web.Caching.OutputCacheModule" />
      <add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" />
      <add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule" />
      <add name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule" />
      <add name="RoleManager" type="System.Web.Security.RoleManagerModule" />
      <add name="PublishingHttpModule" type="Microsoft.SharePoint.Publishing.PublishingHttpModule, Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
      <add name="Session" type="System.Web.SessionState.SessionStateModule" />
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    </httpModules>
    <globalization fileEncoding="utf-8" />
    <compilation batch="false" debug="false">
      <assemblies>
        <add assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
        <add assembly="System.Web.Extensions, Version=1.0.61025.0,Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
  <add assembly="AjaxControlToolkit, Version=1.0.11119.20010, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>
      </assemblies>
      <expressionBuilders>
        <remove expressionPrefix="Resources" />
        <!-- REMOVED FOR BREVITY -->
      </expressionBuilders>
    </compilation>
    <pages enableSessionState="false" enableViewState="true" enableViewStateMac="true" validateRequest="false" pageParserFilterType="Microsoft.SharePoint.ApplicationRuntime.SPPageParserFilter, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" asyncTimeout="7">
      <namespaces>
        <remove namespace="System.Web.UI.WebControls.WebParts" />
      </namespaces>
      <tagMapping>
        <add tagType="System.Web.UI.WebControls.SqlDataSource, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" mappedTagType="Microsoft.SharePoint.WebControls.SPSqlDataSource, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
      </tagMapping>
      <controls>
        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
  <add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" tagPrefix="ajaxToolkit"/>
      </controls>
    </pages>
    <siteMap defaultProvider="CurrentNavSiteMapProvider" enabled="true">
      <providers>
        <!-- REMOVED FOR BREVITY -->
      </providers>
    </siteMap>
    <trust level="WSS_Minimal" originUrl="" />
    <webParts>
      <transformers>
        <!-- REMOVED FOR BREVITY -->
      </transformers>
    </webParts>
    <machineKey validationKey="validationKey" decryptionKey="decryptionKey" validation="SHA1" />
    <sessionState mode="SQLServer" timeout="60" allowCustomSqlDatabase="true" partitionResolverType="Microsoft.Office.Server.Administration.SqlSessionStateResolver, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
  </system.web>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <!-- REMOVED FOR BREVITY -->
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
  <!-- REMOVED FOR BREVITY -->
  <System.Workflow.ComponentModel.WorkflowCompiler>
    <authorizedTypes>
      <!-- REMOVED FOR BREVITY -->
    </authorizedTypes>
  </System.Workflow.ComponentModel.WorkflowCompiler>
  <appSettings>
    <!-- REMOVED FOR BREVITY -->
  </appSettings>
  <system.net>
    <defaultProxy>
      <proxy autoDetect="true" />
    </defaultProxy>
  </system.net>
  <system.web.extensions>
    <scripting>
      <webServices>
      </webServices>
    </scripting>
  </system.web.extensions>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <modules>
      <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    </modules>
    <handlers>
      <remove name="WebServiceHandlerFactory-Integrated" />
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.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=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    </handlers>
  </system.webServer>
</configuration>
0
Atanas Korchev
Telerik team
answered on 23 Sep 2008, 08:43 AM
Hi Simon,

As far as I know 401 means "Unauthorized". Have you implemented some custom security? If yes try to exclude those urls.

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Simon
Top achievements
Rank 1
answered on 23 Sep 2008, 11:47 AM
There is no custom security on the MOSS boxes (SP1 installed). User permissions and roles are created for each subsite within the site collection, and there are standard MOSS accounts setup for access to the database.
0
Atanas Korchev
Telerik team
answered on 23 Sep 2008, 11:50 AM
Hello Simon,

There must be something otherwise requesting web resources should work. Unfortunately we cannot provide any help unless we somehow reproduce the problem. Is there any live url which we can browse?

Greetings,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Simon
Top achievements
Rank 1
answered on 23 Sep 2008, 11:55 AM
At the moment this issue is occurring in our Development environment and as such is not available to the public. We'll keep digging.....
Tags
PanelBar
Asked by
Simon
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Simon
Top achievements
Rank 1
Share this question
or