or
<telerik:RadToolBarButton Text="Excel" ImageUrl="~/Images/excel.png" CommandName="ExportToExcel" Value="Export" />if (!Page.IsPostBack) { rgMyGrid.ExportSettings.ExportOnlyData = true; rgMyGrid.MasterTableView.UseAllDataFields = true; rgMyGrid.ExportSettings.Excel.Format = GridExcelExportFormat.ExcelML; rgMyGrid.ExportSettings.IgnorePaging = true; rgMyGrid.ExportSettings.FileName = "CropList"; rgMyGrid.ExportSettings.OpenInNewWindow = true; }protected void rtbCommand_ButtonClick(object sender, RadToolBarEventArgs e) { if (e.Item.Value == "Export") { ExportGrid(); } }protected void ExportGrid() { rgMyGrid.ExportSettings.ExportOnlyData = true; rgMyGrid.ExportSettings.Excel.Format = GridExcelExportFormat.ExcelML; rgMyGrid.ExportSettings.IgnorePaging = true; rgMyGrid.ExportSettings.FileName = "CropList"; rgMyGrid.ExportSettings.OpenInNewWindow = true; rgMyGrid.MasterTableView.ExportToExcel(); }RadHtmlChart1.PlotArea.XAxis.DataLabelsField = "PriorityID"<telerik:RadWindowManager ID="RadWindowManager2" runat="server" VisibleTitlebar="false" MaxHeight="50px" KeepInScreenBounds="true " Behaviors="None" Skin="Telerik"> <ConfirmTemplate > <div class="rwDialogPopup radconfirm"> <div class="rwDialogText"> {1} </div> <div> <a onclick="$find('{0}').close(true);" class="rwPopupButton" href="javascript:void(0);"> <span class="rwOuterSpan"><span class="rwInnerSpan"><%= Localization.GetString("OKConfirm.Text", this.LocalResourceFile)%></span></span></a> <a onclick="$find('{0}').close(false);" class="rwPopupButton" href="javascript:void(0);"> <span class="rwOuterSpan"><span class="rwInnerSpan"><%= Localization.GetString("CancelConfirm.Text", this.LocalResourceFile)%></span></span></a> </div> </div> </ConfirmTemplate> </telerik:RadWindowManager>