Once again about printing from RadGridView in Report

3 posts, 1 answers
  1. Krasimir
    Krasimir avatar
    14 posts
    Member since:
    Aug 2016

    Posted 07 Dec 2017 Link to this post

    I have Report based on objectDataSource that I use in RadGridView too. We need something like this becouse in Report are more design possibillity as in RadPrintDocument used to print directly from GridView. 

    Also tryed to use same list of objects - ok, I can print it perfect. 

    Now client wants to use some sortings in GridView. Not bad, sorting from grid can be added to report  datasorce without big problems. Made!

    Now client wants to have some filtering: well this can be complicated! I don't know why but filtering is not the same in radGridView and in Reporting (I really don't get it: why must be difference?): but I can make new list and use GridView.MasterTemplate.ChildRows, check if any of them have bound data and add to this new list. And after this in Report will be all showed (sortings I allready have :) )

    Now Client wants some groups in grid... mmm...now it seems to be too complicated!


    Question: How to make my client happy and print RadGridView in Report with all conditions? 

    I have read that this is not as usuall but if this is possible, please tell me! I'm open to try any solution! So for now I use RadPrintDocument and make print directly from GridView , but there are some other problems :(

  2. Answer
    Katia avatar
    753 posts

    Posted 12 Dec 2017 Link to this post

    Hello Krasimir,

    If I understand you correctly, you want to show the data in the report grouped in the way it is grouped in RadGridView. 

    There is no out-of-the-box approach to transfer the groupings in the report. You can set the groupings for the report using Reporting API where the group identifiers need to be taken from the RadGridView according to your custom logic.
    To see how the report groups are generated in code-behind, you can create a report with required groupings in Visual Studio report designer and check the generated code in Report.designer.cs file.

    I hope this will help.

    Progress Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. Krasimir
    Krasimir avatar
    14 posts
    Member since:
    Aug 2016

    Posted 12 Dec 2017 in reply to Katia Link to this post

    Hello Katia,

    Yes, you have correctly understood. And thanks for your answer. I'll try to play with group descriptors from RadGridView later. As for now, we just ignore printing when GridView is with group descriptors. Well this is not the best sollution but I'm not sure if we need grouping in reports at all.

    Thank you for your answer. It really helps - so I don't need to search some "hidden possibillities" from Reporting. :)


    Best Regards,

    Krasimir, CES Group

Back to Top