save grid data to another array

4 posts, 0 answers
  1. Johnny
    Johnny avatar
    30 posts
    Member since:
    Jan 2012

    Posted 08 Mar 2012 Link to this post

    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.  
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 09 Mar 2012 Link to this post

    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 >>
  3. Johnny
    Johnny avatar
    30 posts
    Member since:
    Jan 2012

    Posted 12 Mar 2012 Link to this post

    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
  4. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 13 Mar 2012 Link to this post

    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 >>
Back to Top