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

Opening and Closing AdvancedForm in RadScheduler

1 Answer 115 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Mouse
Top achievements
Rank 1
Mouse asked on 13 Jan 2011, 06:02 PM
Hello,

I am using an AdvancedEditTemplate using the example which is shown on the telerik website i have used the following code for the call of the form and closing of the form.

 

<asp:Panel runat="server" ID="ButtonsPanel" CssClass="rsAdvancedSubmitArea">
<div class="rsAdvButtonWrapper">
<asp:LinkButton CommandName="Update" runat="server" ID="UpdateButton" CssClass="rsAdvEditSave">
<
span><%# Container.Appointment.Owner.Localization.Save%></span>
</asp:LinkButton>
<asp:LinkButton runat="server" ID="CancelButton" CssClass="rsAdvEditCancel" CommandName="Cancel"CausesValidation="false">
<span><%# Container.Appointment.Owner.Localization.Cancel%></span>
</asp:LinkButton>
</div>
</asp:Panel>

When i click on the "Open" menu item in the appointment contextmenu, it opens the AdvancedEditTemplate in a rad window. below shows you my context menu.

 

 

<AppointmentContextMenus>
<telerik:RadSchedulerContextMenu runat="server" ID="SchedulerAppointmentContextMenu">
<Items>
<telerik:RadMenuItem Text="Open" Value="CommandEdit" />
<telerik:RadMenuItem IsSeparator="True" />
<telerik:RadMenuItem Text="Delete" Value="CommandDelete" ImageUrl="Images/delete.gif" />
</Items>
</telerik:RadSchedulerContextMenu>
</AppointmentContextMenus>

 

 

 

When i click "Open" in the contextmenu I pressume it uses the value "CommandEdit" to show the Form in a RadWindow. I can not find any examples online which explain the process of the "CommandEdit" and how it opens the RadWindow.
So my question is. How do I close and open this AdvancedEditTemplate in the radwindow - serverside so that I can add my own MenuItem and make that open the AdvancedEditTemplate?

Thank you

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 14 Jan 2011, 02:46 PM
Hi Mouse,

Indeed, CommandEdit and CommandDelete are predefined commands. For more info please see this help topic:
http://www.telerik.com/help/aspnet-ajax/scheduler-appointment-context-menu.html

Alternatively, you can handle the ItemClick event of the context menu and call the ShowAdvancedEditForm(app) method conditionally.


Kind regards,
Peter
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Scheduler
Asked by
Mouse
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or