I have a Radscheduler in a control and I'm using a Radwindow to replace the Delete confirmation. I'm using a window because i needed to save a Note for the reason of deleting. The only problem im having is that i need it to cause a postback on the scheduler to reflect that the Appointment was deleted. I was trying to do it with javascript, here is the code i was using.
On the window i have the following:
on the aspx
function Close() {
var oWindow = GetRadWindow();
oWindow.Close();
//oWindow.BrowserWindow.refreshData(); RadScheduler1
oWindow.BrowserWindow.__doPostBack('ucScheduler1$RadScheduler1', '');
}
on the .cs
protected void btnOK_Click(object sender, EventArgs e)
{
EAppointment.DeleteAppointment(int.Parse(Request.QueryString["AppID"].ToString()), txtRazon.Text.ToString());
string script = "<script>Close()</" + "script>";
ClientScript.RegisterStartupScript(this.GetType(), "Close", script);
}