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

Export Grid into a Image

3 Answers 101 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ramya
Top achievements
Rank 1
Ramya asked on 12 May 2011, 08:02 AM
Hi,
 i want grid to be exported as image .Can you please help me out.Any help Appreciable

Regards,
Ramya

3 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 12 May 2011, 09:19 AM
Hello Ramya,

This is not supported out-of-the box. However it is partially achievable by means of the framework .

You can render any UI control to a bitmap using WritableBitmap.
 by var wb = new WriteableBitmap(myUIControl, null);
myImageControl.Source = wb;

However I said partially , as this will get you to an image of what you see on the screen .
In case RadGridView has more records ( with a vertical ScrollViewer), this method will give only the ones visible currently in the viewport.

An alternative would be to export RadGridView to one of the internally supported formats and use an external tool to convert it to an image .

I believe this is as close as we can get.



All the best,
Pavel Pavlov
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
0
Ramya
Top achievements
Rank 1
answered on 12 May 2011, 03:35 PM
can you please attach a sample
0
TJ Gokcen
Top achievements
Rank 1
answered on 08 Jun 2011, 03:17 PM
Tags
GridView
Asked by
Ramya
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Ramya
Top achievements
Rank 1
TJ Gokcen
Top achievements
Rank 1
Share this question
or