Hi Princy I have tried your code.I couldn't make it work.
Let me explain my scenario in detail.
I have a Department,Doctor and the time interval for the Doctor.
For a particular Doctor,the time interval is fetched and From time and To-time interval also changes accordingly. Also if the user selects a particular time interval,then also the Time picker's time interval changes.Hence the user can select a particular time interval and fix an appointment for a particular doctor.
In the above scenario,I need to mark the calendar and time pickers for a particular Doctor's appointment.Will your code work in my case as I am changing the time interval of the time pickers.
Appreciate the help from anyone.
aspx:
<
tr
>
<
td
>
Department
<
telerik:RadComboBox
ID
=
"RCDept"
runat
=
"server"
Width
=
"150px"
DropDownWidth
=
"500px"
Height
=
"200px"
EmptyMessage
=
"Select Clinic"
EnableLoadOnDemand
=
"true"
Filter
=
"StartsWith"
OnItemsRequested
=
"RCDept_ItemsRequested"
HighlightTemplatedItems
=
"true"
OnSelectedIndexChanged
=
"RCDept_SelectedIndexChanged"
AutoPostBack
=
"true"
>
<
HeaderTemplate
>
<
table
style
=
"width: 500px"
cellspacing
=
"0"
cellpadding
=
"0"
>
<
tr
>
<
td
style
=
"text-align:left;width:250px"
>Department
</
td
>
<
td
style
=
"text-align:left;width:250px"
>Doctor
</
td
>
</
tr
>
</
table
>
</
HeaderTemplate
>
<
ItemTemplate
>
<
table
style
=
"width: 500px"
cellspacing
=
"0"
cellpadding
=
"0"
>
<
tr
>
<
td
style
=
"text-align:left;width:250px"
>
<%# DataBinder.Eval(Container, "Text")%>
</
td
>
<
td
style
=
"text-align:left;width:250px"
>
<%# DataBinder.Eval(Container, "Attributes['doc_name']")%>
</
td
>
</
tr
>
</
table
>
</
ItemTemplate
>
</
telerik:RadComboBox
>
</
td
>
<
td
>
Doctor
<
telerik:RadTextBox
ID
=
"RCDoctor"
runat
=
"server"
Width
=
"150px"
></
telerik:RadTextBox
>
</
td
>
<
td
>
Time Interval
<
asp:DropDownList
ID
=
"RCTimeInt"
runat
=
"server"
Width
=
"75px"
AutoPostBack
=
"true"
OnSelectedIndexChanged
=
"RCTimeInt_SelectedIndexChanged"
>
<
asp:ListItem
Text
=
"Select"
Value
=
"0"
/>
<
asp:ListItem
runat
=
"server"
Text
=
"5 Min"
Value
=
"5"
/>
<
asp:ListItem
runat
=
"server"
Text
=
"10 Min"
Value
=
"10"
/>
<
asp:ListItem
runat
=
"server"
Text
=
"15 Min"
Value
=
"15"
/>
<
asp:ListItem
runat
=
"server"
Text
=
"20 Min"
Value
=
"20"
/>
<
asp:ListItem
runat
=
"server"
Text
=
"25 Min"
Value
=
"25"
/>
<
asp:ListItem
runat
=
"server"
Text
=
"30 Min"
Value
=
"30"
/>
<
asp:ListItem
runat
=
"server"
Text
=
"35 Min"
Value
=
"35"
/>
<
asp:ListItem
runat
=
"server"
Text
=
"40 Min"
Value
=
"40"
/>
<
asp:ListItem
runat
=
"server"
Text
=
"45 Min"
Value
=
"45"
/>
<
asp:ListItem
runat
=
"server"
Text
=
"50 Min"
Value
=
"50"
/>
<
asp:ListItem
runat
=
"server"
Text
=
"55 Min"
Value
=
"55"
/>
<
asp:ListItem
runat
=
"server"
Text
=
"60 Min"
Value
=
"60"
/>
</
asp:DropDownList
>
</
td
>
</
tr
>
<
tr
>
<
td
>
Appmnt Date
<
telerik:RadDatePicker
ID
=
"RDAppmntDate"
runat
=
"server"
MinDate
=
"01/01/1900"
Height
=
"23px"
>
<
Calendar
ID
=
"Calendar1"
runat
=
"server"
UseRowHeadersAsSelectors
=
"False"
UseColumnHeadersAsSelectors
=
"False"
ViewSelectorText
=
"x"
></
Calendar
>
<
DateInput
ID
=
"DateInput1"
runat
=
"server"
>
<%-- <
ClientEvents
OnValueChanging
=
"checkError"
/>--%>
</
DateInput
>
<
DatePopupButton
ImageUrl
=
""
HoverImageUrl
=
""
></
DatePopupButton
>
</
telerik:RadDatePicker
>
</
td
>
<
td
>
From Time
<
telerik:RadTimePicker
ID
=
"RCFromTime"
runat
=
"server"
Width
=
"110px"
Culture
=
"en-US"
TimeView-TimeFormat
=
"t"
DateInput-DateFormat
=
"h:mm tt"
DateInput-DisplayDateFormat
=
"h:mm tt"
AutoPostBack
=
"true"
>
<
TimeView
StartTime
=
"08:00:00"
EndTime
=
"20:00:00"
Height
=
"100px"
Width
=
"250px"
ShowHeader
=
"False"
runat
=
"server"
> </
TimeView
>
</
telerik:RadTimePicker
>
</
td
>
<
td
>
To Time
<
telerik:RadTimePicker
ID
=
"RCToTime"
runat
=
"server"
Culture
=
"en-US"
TimeView-TimeFormat
=
"t"
DateInput-DateFormat
=
"h:mm tt"
DateInput-DisplayDateFormat
=
"h:mm tt"
Width
=
"110px"
>
<
TimeView
ID
=
"TimeView1"
StartTime
=
"08:00:00"
EndTime
=
"20:00:00"
Height
=
"100px"
Width
=
"250px"
ShowHeader
=
"False"
runat
=
"server"
></
TimeView
>
</
telerik:RadTimePicker
>
</
td
>
</
tr
>