Can some one help on this
<
telerik:RadGrid ID="RadGridEBOList" runat="server" AllowPaging="true" AllowSorting = "true"
PageSize="15" width="100%" Skin="Office2007" OnItemCommand="RadGridEBOList_ItemCommand" >
<mastertableview width="100%" autogeneratecolumns="False" ClientDataKeyNames="EBO_ID" >
<Columns>
<telerik:GridBoundColumn DataField="EBO_Number" HeaderText="EBO Number" SortExpression="ETI_Number"
UniqueName="EBO_Number" HeaderStyle-Width="60px">
<ItemStyle Wrap="False" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Description" HeaderText="Descriptione" SortExpression="TestProcedure"
UniqueName="Description" HeaderStyle-Width="80px">
<ItemStyle Wrap="False" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Engine_Owner" HeaderText="Engine Owner" SortExpression="Engine_Type"
UniqueName="Engine_Owner" HeaderStyle-Width="60px">
<ItemStyle Wrap="False" />
</telerik:GridBoundColumn>
<telerik:GridButtonColumn Text="Click here" UniqueName="DownloadColumn" CommandName="Download" HeaderStyle-Width="60px">
<ItemStyle Wrap="False" />
</telerik:GridButtonColumn>
</Columns>
</mastertableview>
<PagerStyle Mode="NumericPages"></PagerStyle>
<ClientSettings EnablePostBackOnRowClick="true" >
</ClientSettings>
 
</telerik:RadGrid>
8 Answers, 1 is accepted
I could not reproduce the described issue. I followed your scenario and prepared a simple project which is working properly. Please check it out and let me know if it helps.
Best wishes,
Pavlina
the Telerik team
Below the the CodeBehind
if
(e.CommandName == "Download")
{
GridDataItem item = (GridDataItem)e.Item;
RadGridDownloadEBOPart.Visible =
true;
RadGridDownloadEBOPart.DataSource = _invEboData.GetEBODetailsToExport(item[
"EBO_Number"].Text);
RadGridDownloadEBOPart.DataBind();
RadGridDownloadEBOPart.ExportSettings.ExportOnlyData =
true;
RadGridDownloadEBOPart.ExportSettings.IgnorePaging =
true;
RadGridDownloadEBOPart.ExportSettings.FileName = item[
"EBO_Number"].Text;
RadGridDownloadEBOPart.MasterTableView.ExportToExcel();
}
--Ravi
Try setting the EnablePostBackOnRowClick property to true and see if it makes any difference:
<
ClientSettings
EnablePostBackOnRowClick
=
"true"
>
All the best,
Pavlina
the Telerik team
<ClientSettings EnablePostBackOnRowClick="true" >
</ClientSettings>
Can you try replicating the issue in the attached sample? Let me know if I missed something from your logic there.
All the best,
Iana
the Telerik team
Thanks
--Rk.MooRthy
As my colleague Iana asked in the previous post - Can you replicate the issue in the sample she attached?
Regards,
Pavlina
Telerik