Is there any way to print Igrid contents only in a page?
Regards,
Suresh A
Hello Suresh A,
You can find attached the example html page.
In the example you can see that there are header and footer sections with some text.
When you print the page, by selecting "File->Print…" from the browser menu you can see that header and footer sections are not printed.
I hope this is the case you're trying to accomplish.
Best Regards,
Martin Pavlov,
Infragistics, Inc.
Its not working. Kindly upload any sample working solution if you have any.
Print only the grid contents in a page and not any other elements.
Well, this is CSS, so you can put it inline or you can reference it with link tag.
For example you can look at this sample:
http://samples.infragistics.com/jquery/grid/paging-api
In "CODE VIEW" section pick "PagingAPI.cshtml" and look at the source code. There you can see how to put CSS inline in the cshtml file or reference it with link tag.
Note: You don't have to modify the grid MVC code in order to print only the grid. You have to put class attribute on the elements which you don't want to print.
Hope this helps,
Martin Pavlov
Hi Martin,
How can i add the code to the .cshtml file where i have the grid in my page. Let me know pls. Do correct me if i am wrong.
Yes. This should work in your case.
Please try it and return feedback.
Best regards,