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

Programatic Creation Radgrid with print

3 Answers 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vijayaraj
Top achievements
Rank 1
Vijayaraj asked on 28 Jul 2011, 03:22 PM
Hi,

I would like to use the print functionality for the radgrid that is created programatically. Is it possible?
Please provide some direction.

Thanks,
Vijay

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 28 Jul 2011, 03:40 PM
Hello Vijayaraj,

Check the following CodeLibrary  Print RadGrid contents.Try attaching a button and in its click event call the function  PrintRadGrid() mentioned in the CodeLibrary.
Hope this helps.

Thanks,
Princy
0
Vijayaraj
Top achievements
Rank 1
answered on 01 Aug 2011, 04:25 PM
Thanks Princy, But that doesnt work for me.

Javascript error on the following line,
"var sh = '<%= ClientScript.GetWebResourceUrl(radGrid1.GetType(),String.Format("Telerik.Web.UI.Skins.{0}.Grid.{0}.css",radGrid1.Skin)) %>';"

it couldn't identify the "radGrid1" control at all.

Can you please provide some sample project with radgrid created completely on page load with the print functionality.

Thanks in advance for your support.

Regards,
Vijayaraj
0
Daniel
Telerik team
answered on 04 Aug 2011, 04:27 PM
Hello Vijayaraj,

Sample project is attached to this post.
Hope this helps.

Regards,
Daniel
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Vijayaraj
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Vijayaraj
Top achievements
Rank 1
Daniel
Telerik team
Share this question
or