or

function ButtonClick(x) { var sz = $find("RadSlidingZoneMainAdminMenu"); alert(sz.get_clickToOpen(false)); if (x == '1') { OpenPane('AdminMenuGeneral'); } if (x == '2') { OpenPane('AdminMenuComponents'); }}function OpenPane(x) { //ExpandSlider(); var sz = $find("<%= RadSlidingZoneMainAdminMenu.ClientID%>"); sz.ExpandPane(x);}$('body').bind('click', function (event) { ' check open pane and collapse it});
<head runat="server"> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <title></title></head>using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI.WebControls;using Telerik.Web.UI;namespace TestCompositeControl{ public class MyCompositeControl : CompositeControl { protected override void CreateChildControls() { RadButton radButtonTest = new RadButton(); radButtonTest.ID = "radButtonTest"; radButtonTest.Text = "Test"; Controls.Add(radButtonTest); base.CreateChildControls(); } }}<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TestCompositeControl.Default" %><!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"> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /><%--Remove this line to hide the bug.--%> <title></title></head><body> <form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnableEmbeddedjQuery="true" /> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"/> Remove the IE=EmulateIE7 to hide the bug.<br /> <uc:MyCompositeControl id="MyCompositeControl1" runat="server"></uc:MyCompositeControl> </form></body></html><configuration>... <system.web> <compilation debug="true" targetFramework="4.0" /> <pages> <controls> <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" /> <add tagPrefix="uc" namespace="TestCompositeControl" assembly="TestCompositeControl" /> </controls> </pages>... </system.web>...</configuration>Hi there,
Below is my fine-working ExportToExcel function.
| Protected Sub btnExportToExcel_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnExportToExcel.Click |
| RadGrid1.MasterTableView.DetailTables(0).Visible = False ' purposely make DetailTable invisible but it shows us BLANK row in Excel.. |
| RadGrid1.ExportSettings.ExportOnlyData = True |
| RadGrid1.ExportSettings.IgnorePaging = True |
| RadGrid1.ExportSettings.OpenInNewWindow = True |
| RadGrid1.MasterTableView.ExportToExcel() |
| End Sub |