RadCalendar controls within RadListView

3 posts, 0 answers
  1. Sebastian
    Sebastian avatar
    2 posts
    Member since:
    Jun 2013

    Posted 28 Jun 2013 Link to this post

    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. Eyup
    Admin
    Eyup avatar
    3015 posts

    Posted 03 Jul 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sebastian
    Sebastian avatar
    2 posts
    Member since:
    Jun 2013

    Posted 05 Jul 2013 Link to this post

    Hi Eyup,

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

    Regards,
    Sebastian
Back to Top