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

[Solved] Printing RadDock and RadGrid with Telerik styles

3 Answers 106 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nejc Žerjal
Top achievements
Rank 1
Nejc Žerjal asked on 18 Nov 2009, 02:11 PM
Hi.

How can i print RadDock and RadGrid with Telerik styles?
If it is not possible how coud i give background color to headers?

Thank you for your help.

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 18 Nov 2009, 03:27 PM
Hello Nejc,

I recommend you examine the following code-library:
http://www.telerik.com/community/code-library/aspnet-ajax/grid/print-radgrid-contents.aspx

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Nejc Žerjal
Top achievements
Rank 1
answered on 20 Nov 2009, 01:29 PM
Hi

I tried that solution but it does not work.
It returns undefined
I thik that the problem is that it cannot find $find('<%= radGrid1.ClientID %>').get_element().outerHTML

Maybe there is a problem with my hiearchy

<telerik:RadDockZone>
<telerik:RadDock >
         <ContentTemplate>
                 <telerik:RadGrid ID="radGrid1">
</telerik:RadGrid>
               </ContentTemplate>
     </telerik:RadDock>
</telerik:RadDockZone>

Thank you for your answer.
0
Daniel
Telerik team
answered on 24 Nov 2009, 07:40 AM
Hello Nejc,

Another approach to get the client object is demonstrated below:
var grid = $telerik.findControl(document, "radGrid1");
grid.get_element().outerHTML ....

For more information, please examine the following link:
Telerik static client library

Regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Nejc Žerjal
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Nejc Žerjal
Top achievements
Rank 1
Share this question
or