<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="extrapage.aspx.cs" Inherits="ERM.Sales_Mix.extrapage" %><%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" ><head runat="server"> <title>Untitled Page</title></head><body> <form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> </telerik:RadScriptManager> <div> <telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None"><MasterTableView><CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings><RowIndicatorColumn><HeaderStyle Width="20px"></HeaderStyle></RowIndicatorColumn><ExpandCollapseColumn><HeaderStyle Width="20px"></HeaderStyle></ExpandCollapseColumn> <Columns> <telerik:GridTemplateColumn UniqueName="TemplateColumn"> <ItemTemplate> <table ID="Table_01" border="0" cellpadding="0" cellspacing="0" width="400"> <tr> <td align="center" background="images/TABLE_01.gif" colspan="5" height="29"> <font color="#FFFFFF" face="Arial" size="+1">Month Title</font></td> </tr> <tr> <td background="images/TABLE_02.gif" height="27" width="156"> </td> <td background="images/TABLE_03.gif" height="27" width="62"> </td> <td background="images/TABLE_04.gif" height="27" width="60"> </td> <td background="images/TABLE_05.gif" height="27" width="62"> </td> <td background="images/TABLE_06.gif" height="27" width="60"> </td> </tr> <tr> <td height="19" width="156"> </td> <td height="19" width="62"> </td> <td height="19" width="60"> </td> <td height="19" width="62"> </td> <td height="19" width="60"> </td> </tr> <tr> <td colspan="5" height="19" width="60"> </td> </tr> </table> </ItemTemplate> </telerik:GridTemplateColumn> </Columns></MasterTableView> </telerik:RadGrid> </div> </form></body></html>
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!