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

Static Webpart

1 Answer 63 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
Sudhakar
Top achievements
Rank 1
Sudhakar asked on 01 Jul 2012, 07:17 PM
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.

1 Answer, 1 is accepted

Sort by
0
Cat Cheshire
Top achievements
Rank 1
answered on 04 Jul 2012, 01:20 PM
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.

Tags
Sharepoint Integration
Asked by
Sudhakar
Top achievements
Rank 1
Answers by
Cat Cheshire
Top achievements
Rank 1
Share this question
or