jQuery UI Widgets Forums Grid I found some bug in JqxGrid

This topic contains 2 replies, has 2 voices, and was last updated by  dadiduekappa 4 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • I found some bug in JqxGrid #88215

    dadiduekappa
    Participant

    Hi, please fix this.
    First bug:

    file “jqxgrid.storage.js”, line 350, you use variable “value” in function “$.jqx.dataFormat.tryparsedate(value)” but the correct one is “value2”.

    Second bug:

    when in a grid I use “autosavestate:true” and I load the state when enter into my page there is a problem with column type date and date filter (normal and range).
    The problem occur because the code doesn’t recognize the globalization settings for dates (it-IT in my case).

    Exemple: in your code you write:

    var from = new Date(value);

    But in Italy my date, for exemple is “31/10/2016” and for you it’s incorrect because for your code the month is 31.
    Or if I set date to “01/09/2016” that for me it’s first of September, your code transform my date in 9 of January!

    Then I think before to set a new Date you have to code the pattern writing “var from = $.jqx.dataFormat.tryparsedate(value)”

    Please also tell me how to correctly set the global pattern.

    Thanks

    I found some bug in JqxGrid #88234

    Christopher
    Participant

    Hi dadiduekappa,

    Thank you for your feedback. The second issue that you have isn’t a bug. You just need to set the cellsformat of the Date column to fit your needs, in your case it will be “cellsformat: ‘d/M/yyyy'”.
    Here is a demo:
    http://jsfiddle.net/TeQMx/1058/

    Best Regards,
    Christopher

    jQWidgets Team
    http://www.jqwidgets.com

    • This reply was modified 4 years ago by  Christopher.
    I found some bug in JqxGrid #88262

    dadiduekappa
    Participant

    Hi,
    thank’s for your reply.
    I already use cellsformat on grid column to specify my format. But debugging your code, the value 1/10/2016 became 10 Jan 2016.
    Another thing, I use autosavestate=true and when I came back on my list, all filters are loaded but if there is a filter on a date (or range) something goes wrong and the filter fails to load.

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

You must be logged in to reply to this topic.