Radscheduler - Recurrance - Advanced Edit Template - Wrong Data

2 posts, 0 answers
  1. Mike
    Mike avatar
    11 posts
    Member since:
    Sep 2012

    Posted 10 Oct 2011 Link to this post

    I have a radscheduler that uses recurrence.

    I am using the advanced edit template - modal to display the title, description and some related data on double click.

    The pop-up display works properly when the item is a unique (non recurrance) item.

    When the item is a recurrance,  and it has been edited,  when I double click on the item (bring up the advanced edit window) the data being displayed is the subject and description from the original (master) recurrance. 

    For example:
    47 Test Beginning 10/10/2011 8:00:00 AM 10/10/2011 8:15:00 AM The Test Beginning Description. NULL DTSTART:20111010T080000Z
    DTEND:20111010T081500Z
    RRULE:FREQ=HOURLY;COUNT=6;INTERVAL=1
    EXDATE:20111010T090000Z,20111010T100000Z
    1 NULL
    48 Test Beginning 2 10/10/2011 9:00:00 AM 10/10/2011 9:15:00 AM The Test Beginning Description. 2 47 NULL 1 NULL

    Test Beginning is the original.  Test beginning was created via the recurrance,  and then edited to change the subject and description field data.

    When I double click on 'Test Beginning' in any view,  it brings up my advanced template :

     

     

    <AdvancedForm Modal="true" />

     

     

     

    <AdvancedEditTemplate>

     

     

     

    <div class="rsAdvancedEdit" style="position: relative; border: 1px solid black; background-color: white;

     

     

     

     

    height: auto;">

     

     

     

    <div class="rsAdvTitle" style="background-color: White; height: auto; padding:10px;">

     

     

     

    <h3><%# eval("subject") %></h3>

     

     

     

    <asp:LinkButton runat="server" ID="AdvancedEditCloseButton" CssClass="rsAdvEditClose"

     

     

     

    CommandName="Cancel" CausesValidation="false" >

     

     

     

     

    </asp:LinkButton>

     

     

     

    <div style="display: block; float: left; width: 320px; height: 400px;

     

     

     

     

    background-color: transparent; padding: 10px;">

     

     

     

    <b>Time slot specific information:</b><br />

     

    <%

     

    # Eval("description") %>

     

     

     

    </div>

     

     

     

    </div>

     

     

     

    </AdvancedEditTemplate>

     


    On the original,  it shows T'est Beginning' as the subject and 'The Test Beginning Description' as the description.
    When I double click (bring up advanced edit template) on Test Beginning 2 (it displays test beginning 2 in all views for appointmentTemplate correctly)  the advanced edit shows the ORIGINAL recurrance items subject and description.

    In this case,  'Test Beginning' and 'The Test Beginning description.' : NOTE: It shoudl have had a 2 at the end.

    This does this in every instance where I have used the advancedEditTemplate to display the information. 

    Somehow it is using the recordset subject/description for the master and not the one that was clicked.

    If this is something I have done incorrectly please point me in the right direction.

    NOTE:  entire scheduler markup:

     

     

    <telerik:RadScheduler ID="RadScheduler1" runat="server" DataDescriptionField="description"

     

     

     

    DataEndField="endTime" DataKeyField="id" DataRecurrenceField="recData" DataRecurrenceParentKeyField="recurranceParent"

     

     

     

    DataSourceID="SqlDataSource1" DataStartField="startTime" DataSubjectField="subject"

     

     

     

    AllowDelete="False" AllowInsert="False" EnableDescriptionField="True"

     

     

     

    EnableRecurrenceSupport="False" OverflowBehavior="Expand" OnClientRecurrenceActionDialogShowing="OnClientRecurrenceActionDialogShowing"

     

     

     

    OnClientAppointmentMoveStart="OnClientAppointmentMoveStart" OnClientAppointmentResizeStart="OnClientAppointmentResizeStart"

     

     

     

    EnableCustomAttributeEditing="True"

     

     

     

    CustomAttributeNames="classOverviewId,cssColor"

     

     

     

    SelectedView="MonthView" >

     

     

     

    <AdvancedForm Modal="true" />

     

     

     

    <AdvancedEditTemplate>

     

     

     

    <div class="rsAdvancedEdit" style="position: relative; border: 1px solid black; background-color: white;

     

     

     

     

    height: auto;">

     

     

     

    <div class="rsAdvTitle" style="background-color: White; height: auto; padding:10px;">

     

     

     

    <h3><%# eval("subject") %></h3>

     

     

     

    <asp:LinkButton runat="server" ID="AdvancedEditCloseButton" CssClass="rsAdvEditClose"

     

     

     

    CommandName="Cancel" CausesValidation="false" >

     

     

     

     

    </asp:LinkButton>

     

     

     

    <div style="display: block; float: left; width: 320px; height: 400px;

     

     

     

     

    background-color: transparent; padding: 10px;">

     

     

     

    <b>Time slot specific information:</b><br />

     

    <%

     

    # Eval("description") %>

     

     

     

    </div>

     

     

     

    </div>

     

     

     

    </AdvancedEditTemplate>

     

     

     

    </telerik:RadScheduler>

     



  2. Plamen
    Admin
    Plamen avatar
    3049 posts

    Posted 13 Oct 2011 Link to this post

    Hello Mike,

    I have tested the code but could not observe any unusual behavior. Here is a video that I made:
    http://screencast.com/t/0PabcJj1lwC

    Kind regards, Plamen Zdravkov
    the Telerik team
    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 their blog feed now
Back to Top