AdvancedInsertTemplate working but not AdvancedEditTemplate

6 posts, 0 answers
  1. David Cowan
    David Cowan avatar
    22 posts
    Member since:
    Nov 2009

    Posted 17 Feb 2012 Link to this post

    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>
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 21 Feb 2012 Link to this post

    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 >>
  3. David Cowan
    David Cowan avatar
    22 posts
    Member since:
    Nov 2009

    Posted 21 Feb 2012 Link to this post

    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?
  4. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 24 Feb 2012 Link to this post

    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.
  5. David Cowan
    David Cowan avatar
    22 posts
    Member since:
    Nov 2009

    Posted 27 Feb 2012 Link to this post

    Double binding was the issue.  Thanks!
  6. acola
    acola avatar
    15 posts
    Member since:
    Aug 2006

    Posted 29 May 2012 Link to this post

    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!
Back to Top