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

[Solved] RadDataGrip Share via Windows 8 Share Contracts

2 Answers 17 Views
Grid for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gabriel
Top achievements
Rank 1
Gabriel asked on 04 Apr 2013, 05:02 PM
Hi Community,

Does anybody know how to Share The (Table) RadDataGrid via the Windows 8 Share Contracts through e-mail, either in the body of the e-mail or as an attachment to the e-mail?

Thanks,
Gabriel

NB: Just saw in the tittle I have a typo in the Heading of the post  it is supposed to be RadDataGrid...

2 Answers, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 05 Apr 2013, 04:36 PM
Hello Gabriel,

Currently RadDataGrid does not provide built-in support for exporting the grid data. What you can do is to get the current displayed items using the RadDataGrid.GetDataView() method, export them in the desired format and set it as an attachment to the share contract. More information regarding share charm usage and how to use attachments can be found here - http://msdn.microsoft.com/en-us/library/windows/apps/xaml/Hh871368(v=win.10).aspx.

If you have any other questions do not hesitate to contact us again.


Kind regards,
Ivaylo Gergov
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Gabriel
Top achievements
Rank 1
answered on 07 Apr 2013, 06:39 PM
Hello Ivaylo,

Thank you for the reply, 

My team and I have managed to solve this by simply looping through the list that we used to bind to the RadGrid and create a HTML table from it, that is then shared via the Share Contract of the e-mail app.

It would however be great if telerik had that option to export the RadGrids as they are because they look so awesome.

Kind Regards,
Gabriel Nhinda
Tags
Grid for XAML
Asked by
Gabriel
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Gabriel
Top achievements
Rank 1
Share this question
or