Hi,
Is there a way to use printView() from grid for Dataview object?
Hi,
printView() can be used only for Grid. Unfortunately, there is not a ready solution for Dataview.
I came up with the solution that you can put in dhtmlxdataview inside the prototype definition dhtmlXDataView.prototype={…
printView:function(b,d){
var html=“TD { font-family:Arial; text-align:left; padding-left:2px;padding-right:2px; } \n td.filter input, td.filter select { display:none; } \n </style>”;
html += ‘
Hello,
Thank you for the provided solution. It will be helpful for others who have faced the same issue. However, this method can not be applied to any dataview:
- it can be used only for dataview with pager,
- the method doesn’t consider dataview template.