jQWidgets Forums

jQuery UI Widgets Forums Grid Grid Printing & dates

Tagged: ,

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 10 years, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Grid Printing & dates #55451

    gweber
    Participant

    Hi all,

    I’ve gotten the Grid widget working in a custom script. I love it!
    http://gardencalc.drivingpeace.com/results2.php

    I’m only having two small problems. I can’t get the Print function working (I used the Printing.htm demo code) and for some reason the dates are all off by one day.

    Any help solving this is much appreciated.

    Thanks!

    Grid Printing & dates #55456

    Peter Stoev
    Keymaster

    Hi gweber,

    I think that’s because your date strings “2014-04-07” does not contain time-zone information so when we pass your String to the JavaScript Date’s Constructor, it will create a date using your local time zone and will take into account the daylight offset as well.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Grid Printing & dates #55664

    gweber
    Participant

    Aweome! Thank you Peter. Do you have a suggestion for how to get the Print function working?

    Grid Printing & dates #55676

    Peter Stoev
    Keymaster

    Hi gweber,

    I suppose that by using the same approach as in our online demo i.e preparing a new window, putting the Grid’s HTML inside and calling the Web Browser’s print function.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.