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

Export not showing exactly what in RadGrid

1 Answer 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vinh
Top achievements
Rank 1
Vinh asked on 11 Oct 2010, 04:09 AM
Hi,

On my RadGrid, I bind text value to a method in the code behind to translate from ID to Name. 

 

The main data is pulled from SQLDataSource and the translation that used in the methods are pulling from the XMLDataSource.  But when I try to export it's only show ID instead of the name field.
aspx
Text='<%# getProdName( DataBinder.Eval(Container.DataItem,"ProdID").ToString()) %>'

 

 

 

code behind
protected string getProdName(string ID)

 

{

 

string strProduct = string.Empty;

 

 

.......
return
strProduct;

 

}

 

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 14 Oct 2010, 09:35 PM
Hello Vinh,

I'm not sure how to reproduce this behavior. Please download the attached demo and let me know how to modify it in order to recreate your scenario.

Best regards,
Daniel
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Vinh
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or