This is a migrated thread and some comments may be shown as answers.

GridHyperLinkColumn Export Data

1 Answer 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jean-Yves
Top achievements
Rank 1
Jean-Yves asked on 27 Mar 2012, 03:34 PM
Hello, 

Each time I want to export in an Excel file my data it's perfect expect on my GridHyperLinkColumn where I get only '0'

<telerik:GridHyperLinkColumn HeaderText="Remontée"
                        DataTextField="IdRemontee"
                        DataTextFormatString="Remontée {0}"
                        DataNavigateUrlFields= "IdRemontee"
                        DataNavigateUrlFormatString= "~/Pages/RemonteeEtAction/RemonteeView.aspx?id={0}"
                        UniqueName="O_IdRemontee" >
                    </telerik:GridHyperLinkColumn>

Do you know if there is any issue?

Thank you

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 28 Mar 2012, 06:00 AM
Hello Jean,

I have tried the same scenario based on your requirement. Here I am pasting the code for your reference.
aspx:
<telerik:RadGrid ID="radGrid1" runat="server" DataSourceID="datasource1" AutoGenerateColumns="false" AllowPaging="true" >
 <ExportSettings Excel-Format="Html" ExportOnlyData="true" IgnorePaging="true"></ExportSettings>
   <MasterTableView CommandItemDisplay="Top" >
      <CommandItemSettings ShowExportToExcelButton="true" />
        <Columns>
         <telerik:GridBoundColumn DataField="SupplierID" HeaderText="SupplierID" ></telerik:GridBoundColumn>
         <telerik:GridBoundColumn DataField="SupplierID" HeaderText="SupplierID" ></telerik:GridBoundColumn>
        <telerik:GridHyperLinkColumn HeaderText="Remontée" DataTextField="IdRemontee" DataNavigateUrlFields= "IdRemontee" DataNavigateUrlFormatString= "~/Pages/RemonteeEtAction/RemonteeView.aspx?id={0}" UniqueName="O_IdRemontee" ></telerik:GridHyperLinkColumn>
        </Columns>
    </MasterTableView>   
</telerik:RadGrid>
Attached is the screenshot.

Thanks,
Shinu.
Tags
Grid
Asked by
Jean-Yves
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Share this question
or