or
<
script type="text/javascript">
function
DeleteAppointment()
{
var scheduler = $find("<%= Owner.ClientID %>");
var app = scheduler.get_currentAppointment();
scheduler.deleteAppointmentWithConfirmation(app);
scheduler.hideAdvancedForm();
return false;
}
</
script>
This example is used within a usercontrol, I have an advanced edit template within the aspx page as opposed to usercontrol, how could I use the above or similar in my advanced edit template to delete an appointment.
Thanks.

| protected void RadGrid1_InsertCommand(object source, GridCommandEventArgs e) |
| { |
| string serverID = null; |
| string insertType = "master"; |
| GridEditFormItem gridEditFormItem = (GridEditFormItem)e.Item; |
| Hashtable ht = new Hashtable(); |
| gridEditFormItem.ExtractValues(ht); |
| if ("Systems".Equals(e.Item.OwnerTableView.Name)) |
| { |
| GridDataItem parentItem = (GridDataItem)e.Item.OwnerTableView.ParentItem; |
| serverID = parentItem.OwnerTableView.DataKeyValues[parentItem.ItemIndex]["ServerID"].ToString(); |
| insertType = "detail"; |
| } |
| presenter.InsertRecord(serverID, ht, insertType); |
| XmlDataSource1.Save(); |
| //rebind to get the real number of pages (incase adding an item increased the page count |
| RadGrid1.Rebind(); |
| if ("Systems" != e.Item.OwnerTableView.Name) |
| { |
| //set to last page |
| RadGrid1.CurrentPageIndex = RadGrid1.PageCount - 1; |
| //after changing page, need to rebind |
| RadGrid1.Rebind(); |
| } |
| else |
| { |
| GridTableView table = e.Item.OwnerTableView; |
| //set to last page |
| table.CurrentPageIndex = table.PageCount - 1; |
| //after changing page, need to rebind |
| table.Rebind(); |
| } |
| } |
<telerik:radupload id="RadUpload1" runat= "server"
allowedfileextensions=".doc,.rtf,.txt" />
<asp:customvalidator runat="server" id="CustomValidator1"
display="Dynamic"
clientvalidationfunction="ValidateRadUpload1"
>
Invalid extensions.
</asp:customvalidator>
<asp:button runat="server" id="Button1" text="Submit" />
<script type="text/javascript">
function ValidateRadUpload1(source, arguments)
{
arguments.IsValid = GetRadUpload('<%= RadUpload1.ClientID %>').ValidateExtensions();
}
</script>
i have 4 tabstrips and in the 3rd tab i m using radupload.
when i use the above code then error occured "the object doesnt support this property or method"
please help me
