protected void rsPeopleScheduler_OnAppointmentClick(object sender, Telerik.Web.UI.SchedulerEventArgs e){
try
{
//Response.Redirect("default.aspx?apptid=" + e.Appointment.ID);
string popupfrm = @"window.showModalDialog('PeopleJobDetails.aspx'
,''
,'dialogWidth:1500px; dialogHeight:700px; center:yes');"
;
RadScriptManager.RegisterClientScriptBlock(this,
this.GetType(),
"OpenPopupPeopleJobDetails",
popupfrm,
true);
}
catch (Exception ex)
{ }
finally { }
}
Its coming out fine but when I try to close the popup window:
RadScriptManager.RegisterClientScriptBlock(this,
this.GetType(),
"Close_Window",
"window.close();",
true);
It goes back radScheduler but with a appointment edit window open on the scheduler.
protected void SectionGrid_UpdateCommand(object source, GridCommandEventArgs e){ UserControl userControl = (UserControl)e.Item.FindControl(GridEditFormItem.EditFormUserControlID); ... ...protected void SectionGrid_InsertCommand(object source, GridCommandEventArgs e){ UserControl userControl = (UserControl)e.Item.FindControl(GridEditFormItem.EditFormUserControlID); ... ...<telerik:RadGrid ID="rgExport" runat="server" Skin="WebBlue" AllowPaging="true" PageSize="20"></telerik:RadGrid>All tips/advices for a solution (code) are highly appreciated. I will load data in step 2 and 3 with sql queries. Links to demos and examples are also highly appreciated.
I would prefer to trigger an event when click the column value/item and have the instructions (=code) for action in code behind file. I will also have the column value/item as a link button because in some cases I want two different columns in radgrid that trigger different actions.
Thx in advance!
<%@ Register Src="PropertyContainer.ascx" TagName="PropertyContainer" TagPrefix="uc1" %> <radG:RadGrid ID="employees" OnNeedDataSource="EmployeesGrid_NeedDataSource" runat="server" AutoGenerateColumns="false"> <Columns> <radG:GridTemplateColumn> <ItemTemplate> <uc1:PropertyContainer ID="PropertyContainer" runat="server" /> </ItemTemplate> </radG:GridTemplateColumn> </Columns>protected void Page_Load(object sender, EventArgs e) { }
public void EmployeesGrid_NeedDataSource(object source, Telerik.WebControls.GridNeedDataSourceEventArgs e) { foreach (Employee emp in Employees) { PropertyContainer.SetProperties(emp.Properties); } )