<telerik:RadGrid runat="server" ID="RadGrid1" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" GridLines="None" OnItemCommand="RadGrid1_ItemCommand"> <MasterTableView DataKeyNames="Id" ClientDataKeyNames="Id"> <Columns> <telerik:GridBoundColumn DataField="Firstname" HeaderText="Firstname" DataType="System.String"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Lastname" HeaderText="Lastname" DataType="System.String"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Age" HeaderText="Age" DataType="System.Int32"> </telerik:GridBoundColumn> <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="DeleteColumn" ButtonType="ImageButton"> </telerik:GridButtonColumn> </Columns> <PagerStyle Mode="Slider" /> </MasterTableView> <ClientSettings> <DataBinding SelectMethod="GetSampleData" Location="Webservice/GridData.svc" SortParameterType="String"> </DataBinding> </ClientSettings></telerik:RadGrid>However when clicking on the appropriate button on a grid row the event isn't fired, basically no postback to the server is being done. A solution I found is to add the "EnablePostBackOnRowClick=true" to the ClientSettings, but this would cause a postback on each click on a row, which is not really desired.
Is there a better way to realizing this or does anybody have a hint what could be the problem??

<asp:ImageButton ID="ImageButtonChinese" runat="server" ImageUrl="~/images/flags/chinese-flag.gif" />
<telerik:RadToolTip ID="RadToolTipChinese" runat="server" Animation="Fade" TargetControlID="ImageButtonChinese" IsClientID="true" Text="Click flag for Mandarin site" Position="TopRight" > </telerik:RadToolTip>protected void btnCalender_Click(object sender, EventArgs e){ RadToolBarItem textItem = RadToolBar1.FindItemByText("Button1"); ImageButton btnCalender = (ImageButton)textItem.FindControl("btnCalender"); if (RadGrid1.Visible == true) { //lblTestlabel.Visible = false; RadGrid1.Visible = false; RadScheduler1.Visible = true; LeftPane.Collapsed = false; btnCalender.ImageUrl = "~/images/Picture5.png"; } else { RadGrid1.Visible = true; // lblTestlabel.Visible = true; RadScheduler1.Visible = false; LeftPane.Collapsed = false; btnCalender.ImageUrl = "~/images/CalenderView.png"; } }<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AutoGenerateHierarchy="True" GridLines="None" Height="744px" ondetailtabledatabind="RadGrid1_DetailTableDataBind1" OnItemCommand="RadGrid1_ItemCommand" OnItemCreated="RadGrid1_ItemCreated" onneeddatasource="RadGrid1_NeedDataSource1" PageSize="10" Skin="Forest" Visible="False" Width="100%" AllowSorting="True"> <PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" /> <ItemStyle HorizontalAlign="Center" /> <MasterTableView> <CommandItemSettings ExportToPdfText="Export to Pdf" /> <PagerStyle AlwaysVisible="True" /> </MasterTableView> <HeaderStyle HorizontalAlign="Center" /> <AlternatingItemStyle HorizontalAlign="Center" /> </telerik:RadGrid>grd.MasterTableView.ExportToExcel();
grd.Columns[0].Visible =
true;
e.Row.Cells[0].Attributes.Add(
"visible", "false");
e.Row.Cells.RemoveAt(0);
However i was unsucessfull .. can you pls suggest a wasy so that the column is not exported and there is no blank column in the export
grd.ExportSettings.IgnorePaging =
true;
grd.ExportSettings.OpenInNewWindow =
true;
grd.ExportSettings.Excel.Format = Telerik.Web.UI.
GridExcelExportFormat.Html;
grd.ExportSettings.ExportOnlyData =
true;