Hello everyone,
I am trying to embed a calendar control within the ItemTemplate of a RadListView. It works so far, but I have problems updating the controls using the AutoPostBack feature. Each of these calendars needs to change the background of certain cells based on underlying data thats specific to each calendar (availability of a product on certain dates). Doing this works as well, but for some reason updating one of the calendars updates all other calendar instances as well. How can I fix that?
The code for the template looks like this:
Regards,
Sebastian
I am trying to embed a calendar control within the ItemTemplate of a RadListView. It works so far, but I have problems updating the controls using the AutoPostBack feature. Each of these calendars needs to change the background of certain cells based on underlying data thats specific to each calendar (availability of a product on certain dates). Doing this works as well, but for some reason updating one of the calendars updates all other calendar instances as well. How can I fix that?
The code for the template looks like this:
<
ItemTemplate
>
<
img
src="<%= ControlPath%>product.jpg" alt="<%# Eval("Name")%>" />
<div
>
<
h2
><%# Eval("Name")%></
h2
>
<
p
><%# Eval("Description") %></
p
>
</
div>
<
br
class
=
"clear"
/>
<
telerik:RadCalendar
ViewStateMode
=
"Disabled"
runat
=
"server"
TitleFormat
=
"MMMM yyyy"
AutoPostBack
=
"true"
PresentationType
=
"Preview"
EnableNavigation
=
"true"
EnableMonthYearFastNavigation
=
"false"
OnDayRender
=
"Calendar_DayRender"
OnDefaultViewChanged
=
"Calendar_DefaultViewChanged"
/>
</
ItemTemplate
>
Regards,
Sebastian