jQWidgets Forums

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts

  • Beg
    Participant

    I’ve encountered same problem as mentioned above – I need different formating of 2 columns with 2 different locales. To achive that, I use cellrenderer:

    if ($.jqx.dataFormat.isDate(value)) {
        formattedValue = $.jqx.dataFormat.formatdate(value, column.cellsformat, Globalize.culture(localeString).calendar);
    }

    and that sometimes worked, sometimes didn’t.

    After debugging minified code of dataAdapter, I’ve found the reason – the function uses cache (this.datescache), but that cache is not checked against culture (the 3rd param). So when script format some date in one languge and then you try to format the same date (using same format string) in different language, cached value is used instead and wrong locale-formatted string is returned. Solution should be easy – use culture.name as another part of cacheId.


    Beg
    Participant

    in respond to 2nd point – there is some bug in timeRuler.formatString for monthView – in this case only start is affected by this settings, the end is shown without any format: for example

    views:
            [ {type: 'monthView', timeRuler: {formatString: "HH:mm"} } ],
    

    then hover title on appointment shows ’10:00 – 2015-11-24 15:00:00 …’

    in reply to: Month View Exception Month View Exception #81858

    Beg
    Participant

    Hi,
    I’ve encountered this problem as well, but I’m unable to fix it as suggested because I use this “Array.prototype.newFunction” often in my framework.
    While analyzing jQWidget code, I’ve found simple solution – there is already check while iterating arrays, but is it only “for(var a in b)if(a==”indexOf”)break;”. This should be replaced by “for(var a in b)if(typeof(a)==”function”)break;” (or typeof(a)==’object’ if you prefer)

    This fix is easy and should be part of jQWidget.

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