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

[Solved] exporting with datakey problem

1 Answer 100 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sf
Top achievements
Rank 1
sf asked on 09 Feb 2010, 02:51 AM

hi I have a radgrid with 1 detailtable. The master table is Members, the datakey is MemberId, the detailtable is Students, the datakey is StudentID. At runtime i can expand any mastertableview record to view the detailtable records. However once I click on export button i get this error: StudentID is neither a DataColumn nor a DataRelation for table Members. StudentID only exist in the StudentTable, not the Member table.... I could not understand why the Grid Exporting tries to find the StudentID in Members Table?
my export code is:

RadGrid1.MasterTableView.HierarchyDefaultExpanded = true;     
RadGrid1.MasterTableView.DetailTables[0].HierarchyDefaultExpanded = true;     
RadGrid1.AllowPaging = false;     
RadGrid1.MasterTableView.Rebind();     
RadGrid1.ExportSettings.OpenInNewWindow = true;     
RadGrid1.MasterTableView.ExportToCSV();    
 

please help

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 11 Feb 2010, 08:53 PM
Hello,

It is hard to guess the exact reason for this error. Please attach a runnable version of your website and I will debug it on my end.

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
sf
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or