Printing a grid with persistence enabled not working

I'm using the grid control in MVC setting it up via the fluent API. When I try to print a grid without persistence enabled it prints just fine (in the window that's opened I can see the table rendered without paging or any wrapping elements). However once I turn persistence on and hit the print button it renders the grid paged and with all the toolbars etc. Is this a known issue or is there a way to make this work correctly?

3 Replies

RS Renjith Singh Rajendran Syncfusion Team October 16, 2017 04:36 PM UTC

Hi Andrew, 
  
We have analyzed your query. We are able to reproduce the reported issue from our end. We have confirmed the issue “Printing a grid with persistence enabled not working” is a defect and logged a defect report. The fix will be included in our Volume 4 SP1, 2017 which has been scheduled to be rolled out at the end of November 2017. 
  
Regards, 
Renjith Singh Rajendran. 



AN Andrew October 16, 2017 07:55 PM UTC

Thank you for getting back to me. I ended up finding a workaround (at least it seems to be working) by disabling persistence only when printing. Eg:

var originalPrintFunction = ej.Grid.prototype.print;

ej.Grid.prototype.print = function(){

  var originalValue = this.model.enablePersistence;
    this.model.enablePersistence = false;
    originalPrintFunction.apply(this, arguments);
    this.model.enablePersistence = originalValue;
}


RS Renjith Singh Rajendran Syncfusion Team October 17, 2017 08:59 AM UTC

Hi Andrew, 

We are happy to hear that your workaround resolves your issue. As we have promised we will include the fix for the defect in upcoming Volume 4 SP1, 2017 which has been scheduled to be rolled out at the end of November 2017. 

Until then we appreciate your patience. 

Regards, 
Renjith Singh Rajendran. 


Loader.
Up arrow icon