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

AdvancedInsertTemplate working but not AdvancedEditTemplate

5 Answers 111 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
David Cowan
Top achievements
Rank 1
David Cowan asked on 17 Feb 2012, 04:54 PM
I have implemented an advanced insert/edit form following the demo.  My insert form comes up as expected however my Edit template never comes up.  If I double click on an existing appointment or right click and do edit nothing happens.  I've wired up both OnClientFormCreated and OnFormCreated  I see both called on the insert but not on edit.  Is there anything else I could debug to try and find out why the edit form won't display.


<telerik:RadScheduler ID="radSchedulerMain" Height="100%" runat="server" EnableExactTimeRendering="true" ShowAllDayRow="False" ShowHeader="true" ShowFooter="False"  StartEditingInAdvancedForm="true" StartInsertingInAdvancedForm="true" OverflowBehavior="Expand" EnableDescriptionField="False" WorkDayStartTime="00:00"  WorkDayEndTime="23:59" OnClientFormCreated="schedulerFormCreated2"
              SelectedView="WeekView" ShowFullTime="True" ProviderName="TestSchedulerDataProvider" MinutesPerRow="60" TimeLabelRowSpan="1" onappointmentspopulating="radSchedulerMain_AppointmentsPopulating" OnAppointmentUpdate="radSchedulerMain_AppointmentUpdate" OnAppointmentInsert="radSchedulerMain_AppointmentInsert" OnAppointmentDelete="radSchedulerMain_AppointmentDelete" OnFormCreated="radSchedulerMain_FormCreated" OnNavigationComplete="radSchedulerMain_NavigationComplete"  >
    <AdvancedForm Modal="True"></AdvancedForm>
    <TimelineView UserSelectable="false" />
    <DayView EnableExactTimeRendering="true" />
    <WeekView EnableExactTimeRendering="true"  />
    <MonthView ReadOnly="True" />
    <AppointmentContextMenuSettings EnableDefault="true"></AppointmentContextMenuSettings>      
    <TimeSlotContextMenus>
        <telerik:RadSchedulerContextMenu ID="schedulerMainTimeSlotContextMenu" runat="server">
            <Items>
                <telerik:RadMenuItem Text="New Schedule Segment" Value="CommandAddAppointment" />                         
            </Items>
        </telerik:RadSchedulerContextMenu>
    </TimeSlotContextMenus>
    <Localization AdvancedEditAppointment="Edit Schedule Segment" AdvancedNewAppointment="New Schedule Segment" />
    <AppointmentTemplate>
        <div>
            <%#Eval("Subject")%> <%#Eval("Description")%>
        </div>
    </AppointmentTemplate>
    <AdvancedEditTemplate>
        <scheduler:AdvancedForm runat="server" ID="AdvancedEditForm1" Mode="Edit"
            Start='<%# Bind("Start") %>' End='<%# Bind("End") %>'
        />
    </AdvancedEditTemplate>
    <AdvancedInsertTemplate>
        <scheduler:AdvancedForm runat="server" ID="AdvancedInsertForm1" Mode="Insert"
            Start='<%# Bind("Start") %>' End='<%# Bind("End") %>'
        />
    </AdvancedInsertTemplate>
</telerik:RadScheduler>

5 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 21 Feb 2012, 11:54 AM
Hello David,

I have noticed that you have set StartInsertingInAdvancedForm="true", but for edit mode you need to set -StartEdittingInAdvancedForm="true". Please, try this suggestion and let me know if it helps.   


Regards,
Peter
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
David Cowan
Top achievements
Rank 1
answered on 21 Feb 2012, 02:57 PM
I have both

StartEditingInAdvancedForm="true" StartInsertingInAdvancedForm="true"

set.  I verified the code I posted above has both and I have both in my code.  Am I missing something?
0
Peter
Telerik team
answered on 24 Feb 2012, 11:44 AM
Hi David,

I am sorry - I have missed that.

Can you open a support ticket and send us a simple demo of the issue which we can test locally?

Regards,
Peter
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.
0
David Cowan
Top achievements
Rank 1
answered on 27 Feb 2012, 10:33 PM
Double binding was the issue.  Thanks!
0
acola
Top achievements
Rank 1
answered on 29 May 2012, 07:29 PM
David, any chance you could explain what you mean by double-binding being the issue? I am seeing the exact same behavior as you reported in your post, and I haven't been able to figure out what I am doing wrong.

Thanks!
Tags
Scheduler
Asked by
David Cowan
Top achievements
Rank 1
Answers by
Peter
Telerik team
David Cowan
Top achievements
Rank 1
acola
Top achievements
Rank 1
Share this question
or