Static Webpart

2 posts, 0 answers
  1. Sudhakar
    Sudhakar avatar
    1 posts
    Member since:
    Apr 2012

    Posted 01 Jul 2012 Link to this post

    Hello All,

    My requirement is to use RadGrid and RadScheduler webparts as static webparts. Rather configure them on webpart page, can I deploy them as static webparts in application pages.

    I have the following code, but it is failing. please help. thank you.


     <%@ Register Tagprefix="telerik" Namespace="Telerik.Ajax.SharePoint" Assembly="Telerik.Ajax.SharePoint, Version=2012.1.215.35, Culture=neutral, PublicKeyToken=aa9e5f693af67c7b" %>

    <telerik:TelerikSPRadSchedulerWebPart runat="server"  __MarkupType="xmlmarkup" WebPart="true" __WebPartId="{AC47AB64-8B3A-4E9D-802F-F0A958B948DD}">
      <Title>Telerik SPRadSchedulerWebPart Web Part</Title>
      <FrameType>Default</FrameType>
      <Description>Telerik SPRadSchedulerWebPart Web Part</Description>
      <IsIncluded>true</IsIncluded>
      <ZoneID>FullPage</ZoneID>
      <PartOrder>2</PartOrder><FrameState>Normal</FrameState><Height /><Width />
      <AllowRemove>true</AllowRemove>
      <AllowZoneChange>true</AllowZoneChange>
      <AllowMinimize>true</AllowMinimize>
      <AllowConnect>true</AllowConnect>
      <AllowEdit>true</AllowEdit>
      <AllowHide>true</AllowHide>
      <IsVisible>true</IsVisible><DetailLink />
      <HelpLink /><HelpMode>Modeless</HelpMode>
      <Dir>Default</Dir><PartImageSmall />
      <MissingAssembly>Cannot import this Web Part.</MissingAssembly>
      <PartImageLarge /><IsIncludedFilter />
      <ExportControlledProperties>true</ExportControlledProperties>
      <ConnectionID>00000000-0000-0000-0000-000000000000</ConnectionID>
      <ID>g_ac47ab64_8b3a_4e9d_802f_f0a958b948dd</ID>
      <BindingMode xmlns="Telerik.Ajax.SharePoint.SPRadSchedulerWebPart">SPList</BindingMode>
      <DayStartTime xmlns="Telerik.Ajax.SharePoint.SPRadSchedulerWebPart" />
      <DayEndTime xmlns="Telerik.Ajax.SharePoint.SPRadSchedulerWebPart" />
      <WorkDayStartTime xmlns="Telerik.Ajax.SharePoint.SPRadSchedulerWebPart" />
      <WorkDayEndTime xmlns="Telerik.Ajax.SharePoint.SPRadSchedulerWebPart" />
      </WebPart>
      </telerik:TelerikSPRadSchedulerWebPart>

    Error : Object reference not set to an instance of an object.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
  2. Cat Cheshire
    Cat Cheshire avatar
    128 posts
    Member since:
    Jun 2010

    Posted 04 Jul 2012 Link to this post

    I am not sure that this is supported.
    You can try setting the SpListName property of the scheduler.
    The sharepoint list that you use has to contain fields called ID, Title, Start, End, RecurrenceRule, RecurrenceParentID.
    The DayStartTime, DayEndTime, WorkDayStartTime, WorkDayEndTime are DateTime properties - so the values that you set to them has to be of DateTime type.


Back to Top