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

save grid data to another array

3 Answers 79 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Johnny
Top achievements
Rank 1
Johnny asked on 09 Mar 2012, 04:43 AM
Dear Telerik Team,

I have an array that contains several columns, where each columns are either a combo boxes, string, or expression column. I would like to save all of the data in the grid(input by users). My idea is to create an arry that contains the same size as the current grid and save the data from the current grid to the new array by scanning all of the rows one by one. I looked at the "print and export" silverlight example but I still don't undersatnd how I should solve my problem. Can you help me to solve problem? Thanks.  

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 09 Mar 2012, 07:28 AM
Hello,

 Indeed exporting demo with RadDocument is the best source for you. In this demo you can check how exactly you should loop data items and extract values from columns. 

Greetings,
Vlad
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Johnny
Top achievements
Rank 1
answered on 12 Mar 2012, 10:11 PM
I tried to follow the code from the example but somehow the reference "using Telerik.Windows.Documents.Model;" can't be found. All i can found that somehows realated to the telerik documents reference is "using Telerik.Windows.Documents.Utils". I think this problem leads me not be able to access RadDocument class in my program. How can I solve this problem? What should I do to access the RadDocument? In addition, can you elaborate what methods, from the demo, can help me to solve my problem? Thanks
0
Vlad
Telerik team
answered on 13 Mar 2012, 07:50 AM
Hi,

I suggest you to read carefully the RadRichTextBox documentation for more info about RadDocument, what assemblies are needed, etc. As to the demo code I suggest you especially to check all methods for adding rows/cells in PrintAndExportWithRadDocumentModel class.

Kind regards,
Vlad
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
GridView
Asked by
Johnny
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Johnny
Top achievements
Rank 1
Share this question
or