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

Radscheduler - Recurrance - Advanced Edit Template - Wrong Data

1 Answer 68 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 10 Oct 2011, 08:03 PM
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>

 



1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 13 Oct 2011, 03:43 PM
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
Tags
Scheduler
Asked by
Mike
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or