DataView print problem.

Hi,

I have created custom view(Booking Report) in dhtmlx scheduler and Used Dhtmlx DataView to display records. Please below image :


Now, I want to print records. But, If I have thousands of record and dhtmlx dataview not render complete record at the time of load and dataview render record on scroll method.

That’s why I am not able to print all records with out scroll.

So, Please suggest me. How can I manage print functionality with Dataview?

Thanks in advance…

Unfortunately dhtmlxDataView has not any special print related functionality.

You can use auto height mode, in such case dataview will render all data at once, so printing the page will result in printing of all items

var view = new dhtmlXDataView({ container:"container_id", height:"auto"

Thanks for your valuable feedback. Now, I am able to print all items of datview.

But, now I am facing new issue of scroll bar. I am not able to see all records of dataview after set height auto.

Please suggest me, how can I manage scroll issue…

Thanks…

Unfortunately those are mutual exclusive problems.

If you have scroll - print will show only part of items.
If you show all items - you will not have a scroll.
I don’t see how you can have a both.

But, If user want to show all data using scroll before print then?

The problem not only in dynamic rendering nature of dataview ( it can be disabled by the way )

When you are printing html page that has inner scrolls ( not scroll of page itself, but scrolls on some html element ) it will print only visible part of those elements, so if you have only 10 items visible in dataview - only they are will be included in the print output, event if all other elements of dataview are rendered.