Hi,
I am replacing ADO.NET data source of Radscheduler with web service.
On previous one, I had appointment template that used custom attributes inserted on appointment data bound event, how can I add custom attributes to show appointment template with this new databinding environment?
protected void TicketsSchedule_AppointmentDataBound(object sender, SchedulerEventArgs e)
{
.....................
e.Appointment.Attributes["MTaskID"] = row["MasterTaskID"].ToString();
e.Appointment.Attributes["TaskID"] = row["SubTaskID"].ToString();
e.Appointment.Attributes["ProjectID"] = row["ProjectID"].ToString();
.................
<telerik:RadScheduler runat="server" ID="RadScheduler1" OnResourcesPopulating="RadScheduler1_ResourcesPopulating" SelectedView="TimelineView" EnableCustomAttributeEditing="True" OnClientDataBound="onSchedulerDataBound"
OnClientAppointmentsPopulating="OnClientAppointmentsPopulating" Width="1900px" Height="900px" OverflowBehavior="Scroll" OnClientResourcesPopulating="OnClientResourcesPopulating"
AppointmentStyleMode="Default" >
<AppointmentTemplate >
<div>
<div id="ApptImageDiv" style="text-align:right; position:absolute; width:95%;" >
<asp:Image ID="ApptAttachmentImg" runat="server" Width="16px" Height="17px" CssClass="ShowAttachment"
/>
</div>
<%#Eval("Subject") %>
</div>
</AppointmentTemplate >
<DayView UserSelectable="True" GroupBy="TechName" GroupingDirection="Horizontal" />
<WeekView UserSelectable="True" GroupBy="TechName" GroupingDirection="Vertical" />
Any idea?
Thanks,
Prava
I am replacing ADO.NET data source of Radscheduler with web service.
On previous one, I had appointment template that used custom attributes inserted on appointment data bound event, how can I add custom attributes to show appointment template with this new databinding environment?
protected void TicketsSchedule_AppointmentDataBound(object sender, SchedulerEventArgs e)
{
.....................
e.Appointment.Attributes["MTaskID"] = row["MasterTaskID"].ToString();
e.Appointment.Attributes["TaskID"] = row["SubTaskID"].ToString();
e.Appointment.Attributes["ProjectID"] = row["ProjectID"].ToString();
.................
<telerik:RadScheduler runat="server" ID="RadScheduler1" OnResourcesPopulating="RadScheduler1_ResourcesPopulating" SelectedView="TimelineView" EnableCustomAttributeEditing="True" OnClientDataBound="onSchedulerDataBound"
OnClientAppointmentsPopulating="OnClientAppointmentsPopulating" Width="1900px" Height="900px" OverflowBehavior="Scroll" OnClientResourcesPopulating="OnClientResourcesPopulating"
AppointmentStyleMode="Default" >
<AppointmentTemplate >
<div>
<div id="ApptImageDiv" style="text-align:right; position:absolute; width:95%;" >
<asp:Image ID="ApptAttachmentImg" runat="server" Width="16px" Height="17px" CssClass="ShowAttachment"
/>
</div>
<%#Eval("Subject") %>
</div>
</AppointmentTemplate >
<DayView UserSelectable="True" GroupBy="TechName" GroupingDirection="Horizontal" />
<WeekView UserSelectable="True" GroupBy="TechName" GroupingDirection="Vertical" />
Any idea?
Thanks,
Prava