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

RadCalendar controls within RadListView

2 Answers 42 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Sebastian
Top achievements
Rank 1
Sebastian asked on 28 Jun 2013, 10:24 AM
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:

<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

2 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 03 Jul 2013, 07:42 AM
Hello Sebastian,

I have prepared a sample web site to test the described behavior. Please run the attached application and instruct us the exact steps to reproduce the issue.

Regards,
Eyup
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Sebastian
Top achievements
Rank 1
answered on 05 Jul 2013, 12:53 PM
Hi Eyup,

thanks for preparing the sample. I will check it out and get back to you as soon as possible.

Regards,
Sebastian
Tags
Calendar
Asked by
Sebastian
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Sebastian
Top achievements
Rank 1
Share this question
or