Flexmonster Grid Print functionality

Answered
Anchal asked on November 14, 2018

Hi Team,
 
Could you please help me to solve the issue of Print functionality on grid ?
When we go for Print, the print preview and the print result shows 40 set of rows are getting combined and getting printed separately and the print is also having 40 set of rows on 1 and 1/2 page and then again 1 and 1/2 page.
Please help me to understand and resolve this issue of print.
 
 

12 answers

Public
Tanya Gryshko Tanya Gryshko Flexmonster November 15, 2018

Hello, Anchal,
Thank you for reporting this issue.
Our development team will fix the issue when incorrectly calculated page height can cause transferring of some records to the new page. Please have a look at the following JSFiddle and confirm whether the issue is the same as you described: http://jsfiddle.net/aq4ybmr5/. This will greatly help us.
Waiting for an update from you.
Regards,
Tanya

Public
Anchal November 16, 2018

Thanks for the response Tanya.
Yes Tanya Print functionality behaves same as I am able to see the issue. Only first 40 sets of rows are there in Page 1 and Page 2 page. Another set of 40 records are getting started from Page 3. So currently I am printing it via generating PDF. There this formatting is proper.
Please find the attached screenshot for your reference.

Public
Tanya Gryshko Tanya Gryshko Flexmonster November 16, 2018

Hello, Anchal,
Thank you for a quick confirmation. Our development team will release a fix for this issue on December the 3rd.
Please inform me in case of any other questions.
Regards,
Tanya

Public
Anchal November 19, 2018

Hi Tanya,
I am facing some issues with Flat View. As most of the Flex options behave strange when using Flat View.

  1. Formatting doesn't work for the columns using "All Values" selection where currency symbol is present or % symbol is available.
  2. Formatting doesn't work for New Column on Flex, which is included using "Add Calculated Values" option of Fields.
  3. Flat view I am not able to use right click customized menu's.

Could you please look on these issues and help me to find a better solution ?

Public
Dmytro Zvazhii Dmytro Zvazhii Flexmonster November 19, 2018

Hello Anchal,
Thank you for writing. Please find our answers below:

  1. Could you please provide more details about your case? You can make the necessary example using the following jsfiddle template: https://jsfiddle.net/flexmonster/rt5LybLy/133/.
  2. When you are adding a new calculated value it is formatted according to the "All Values" formatting. We have not found an issue here. However, after the new calculated value is added it is not possible to select the new calculated value in "Format cells" fields drop down and set a specific formatting from it. Could you please confirm that it is the issue you described in paragraph 2?
  3. Please check your customized menu's handler. Probably it has some code which makes the customized menu different. Please find the following jsfiddle example: https://jsfiddle.net/flexmonster/1p2qbx2t/122/. The custom "Switch to charts" option is available on each layout.

Let us know in case of any other question.
Regards,
Dmytro

Public
Anchal November 21, 2018

 Hi Dmytro,
Thanks a lot for the quick response.
Please find my comments on above explaination:

  1. I have tried with the jsfiddle link provided by you. Please find the attached report. So, if we format the existing columns with $ (Currency) or enable % for the column given. In that case using "All Values" selector, formatting is not working until we specifically select the particular column from drop down.
  2. Yes new column added using "Add Calculated Value" option is working with "All Values" selector. But not available in drop down for specific selection. Even this column is working for the $ (Currency) and % with "All Values".
  3. Yes here I am able to use the customized context menu with all type of Views with the example you have provided. But for my case I have used below way-
    flexmonster.customizeContextMenu(function(items, data, viewType) {
       if(data.member) {
            if(data.member.hierarchyName === "A" ||
               data.member.hierarchyName === "B" ||
               data.member.hierarchyName === "C") {
                   items.push({
                                     label: "Menu 1",
                                     handler: function() {
                                     $scope.goToFrance(data.member.caption, data.member.hierarchyName);
                                   }
                    });
                }
       }
       items = items.filter(function (item);
           return item.label !== "Aggregation"
       });
       return items;
    }

    In this case when I am doing right click on the Flex members. It is able to show me the "Menu 1". But for value Cells, I am not able to call the flexmonster customizeContextMenu function. I am still looking into my code to find it out. It is weird for me too. As it is working with your examples.

Public
Anchal November 21, 2018

Hi Dmytro,
For the issue no. 3, the problem with Flat View is. If I have records more than 20000. It is not able to show the context menu. I have tried with different set of or number of records like 100, 500, 10000, 15000, 17000, 25000.
So above 20000 records context menus are not visible during Flat View right click on cells.
Could you please look into issue and try to fix it ?

Public
Tanya Gryshko Tanya Gryshko Flexmonster November 22, 2018

Hello, Anchal,
Thank you for such a detailed update. It really helped us to reproduce all three issues mentioned by you. The updated version containing all fixes will be released on December the 17th.

Please note that the first issue is happening only for formatting added via the Toolbar. Number formatting defined in the report is working as expected. So we suggest defining number formatting in the report as a temporary workaround.
Number formatting for a specific calculated measure can also be set in the report. More details: https://www.flexmonster.com/doc/number-formatting/
Please let me know in case on any other question.
Regards,
Tanya

Public
Anchal November 23, 2018

 Thank you Tanya. Explanation was really helpful.

Public
Dmytro Zvazhii Dmytro Zvazhii Flexmonster December 4, 2018

Hello Anchal,
We are glad to inform you that the fix for the printing issue has already been released.
You are welcome to try it.
Please let us know if everything works fine for you.
Regards,
Dmytro

Public
Tanya Gryshko Tanya Gryshko Flexmonster December 19, 2018

Hello, Anchal,
We are glad to inform you that the new version of the component is already available on our website.
All three issues with a flat view were fixed.
You are welcome to update the component.
Regards,
Tanya

Public
Anchal December 20, 2018

Thanks for update Tanya, I will update the latest version to verify all 3 issues related to flat view.
Support provided by your team is really helpful.

Please login or Register to Submit Answer