Hi Sir,
How to get resourcetype selected value in telerik Rad Scheduler Control.
Aspx .page code part:
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px">
<telerik:RadScheduler ID="RadScheduler1" runat="server" DataEndField="EndTime"
FirstDayOfWeek="Monday" LastDayOfWeek="Friday"
DataKeyField="ID" SelectedView="WeekView" EnableDescriptionField="True" TimelineView-NumberOfSlots="15"
DataStartField="StartTime" DataSubjectField="Subject" Width="943px"
Height="900px" TimelineView-ShowResourceHeaders="true"
DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentKey"
Skin="WebBlue" onappointmentclick="RadScheduler1_AppointmentClick"
AppointmentStyleMode="Default" OnClientAppointmentCreated="appointmentCreated"
onappointmentdelete="RadScheduler1_AppointmentDelete"
onappointmentinsert="RadScheduler1_AppointmentInsert"
onappointmentdatabound="RadScheduler1_AppointmentDataBound"
onappointmentupdate="RadScheduler1_AppointmentUpdate"
OnNavigationComplete="RadScheduler1_NavigationComplete"
OnClientAppointmentDoubleClick="OnClientAppointmentDoubleClick"
OnFormCreated="RadScheduler1_FormCreated"
CustomAttributeNames="Call P" EnableCustomAttributeEditing="True" >
<AdvancedForm Modal="true" EnableCustomAttributeEditing="true" EnableResourceEditing="true" />
<TimelineView GroupBy="Calendar" GroupingDirection="Vertical" />
<ResourceStyles>
<telerik:ResourceStyleMapping Type="Calendar" Text="Development" BackColor="#D0ECBB" BorderColor="#B0CC9B" />
<telerik:ResourceStyleMapping Type="Calendar" Text="Marketing" ApplyCssClass="rsCategoryRed" />
<telerik:ResourceStyleMapping Type="Calendar" Text="Work" ApplyCssClass="rsCategoryOrange" />
</ResourceStyles>
<TimeSlotContextMenuSettings EnableDefault="true" />
<AppointmentContextMenuSettings EnableDefault="true" />
<ResourceTypes>
<THIS is section i am binding from Code behind at the page load>
</ResourceTypes>
</telerik:RadScheduler>
</telerik:RadAjaxPanel>
------------------------------------------
Creating the Static value for Resource type in Code behind page.... following i aM BINDING AT PAGE LOAD
ResourceType CallPriority = new ResourceType("Call Priority");
CallPriority.ForeignKeyField = "RoomID";
RadScheduler1.ResourceTypes.Add(CallPriority);
RadScheduler1.Resources.Add(new Resource("Call Priority", 1, "Call1"));
RadScheduler1.Resources.Add(new Resource("Call Priority", 2, "Call2"));
RadScheduler1.Resources.Add(new Resource("Call Priority", 3, "Call3"));
RadScheduler1.Resources.Add(new Resource("Call Priority", 4, "Call4"));
RadScheduler1.Resources.Add(new Resource("Call Priority", 5, "Call5"));
RadScheduler1.Resources.Add(new Resource("Call Priority", 6, "Call6"));
RadScheduler1.Resources.Add(new Resource("Call Priority", 7, "Call7"));
RadScheduler1.Resources.Add(new Resource("Call Priority", 8, "Call8"));
RadScheduler1.Resources.Add(new Resource("Call Priority", 9, "Call9"));
RadScheduler1.Resources.Add(new Resource("Call Priority", 10, "Call10"));
RadScheduler1.GroupBy = "Call Priority";
RadScheduler1.GroupingDirection = GroupingDirection.Vertical;
i AM able to bind with my Drop down as per attached screen shot but not able to get (Selected value)value after selection of any "CALL1","Call2"
as per your I am trting to bind with same code we do not have any comboBOX iD..
The following code gives me default value of drop down list.
((Telerik.Web.UI.Resource)((new System.Collections.ArrayList.ArrayListDebugView(((System.Web.UI.StateManagedCollection)(RadScheduler1.Resources))._collectionItems)).Items[0])).Text;
Please find the attached Screen shots.
It is slight similar to(Call Priority DROP down as per attached screen shots) DRopdown list ,so How to get selected Resource type drop down list value by C# code...
Looking forward for your support