or
if (e.Item is GridDataItem) { GridDataItem gridItem = e.Item as GridDataItem; if (!rdgrdGeneralInfo.MasterTableView.GetColumn("ProductId").Display) { foreach (GridColumn column in rdgrdGeneralInfo.MasterTableView.RenderColumns) { if (column is GridBoundColumn) { if (column.UniqueName == "CatalogId") { gridItem[column.UniqueName].ToolTip = "ProductID: " + "XYZ"; } } } } } When I hide the 'ProductId' column through HeaderContextMenu of RadGrid the below client side event gets triggered:
function rdgrdGeneralInfo_OnColumnHiding(sender, args) { } protected void radListBoxStopes_ItemCreated(object source, RadListBoxItemEventArgs e)<br> {<br> string updatePanelID = this.Parent.Parent.FindControl("UpdatePanel1").UniqueID;<br> string parameters = e.Item.Index.ToString();<br> e.Item.Attributes.Add("ondblclick", "__doPostBack('" + updatePanelID + "', " + Tools.EncloseInSingleQuotes(parameters) + ");");<br> }<br><form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> </telerik:RadScriptManager> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td> <telerik:RadEditor ID="fileEditor" ContentFilters="DefaultFilters,PdfExportFilter" Height="500" Width="685" runat="server" ToolsFile="~/HtmlEditorTools.xml" OnExportContent="fileEditor_ExportContent" > <ExportSettings FileName="abc" OpenInNewWindow="true"></ExportSettings> </telerik:RadEditor> </td> </tr> <tr> <td> <asp:Button ID="btnSavePDF" runat="server" Text="Save As PDF" OnClick="btnSavePDF_Click" /> </td> </tr> </table> </form>protected void btnSavePDF_Click(object sender, EventArgs e)
{
fileEditor.ExportToPdf();} <!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> <title></title></head><body> <h1>Product Service Detail</h1> Hi [%=Customer.FirstName%] [%=Customer.LastName%], <br /> I hope you are fine. <br /> Please Note Your Product Services: <br /> [%=ProductServices%] Thanks, <br /> Best Regards, <br /> [%=ProductManager.FullName%] </body></html>