jQWidgets Forums
Forum Replies Created
-
Author
-
February 16, 2017 at 3:39 pm in reply to: Problem with $.jqx.dataFormat.formatdate() with culture Problem with $.jqx.dataFormat.formatdate() with culture #91635
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.
March 3, 2016 at 4:43 pm in reply to: Timeline Views with resources Timeline Views with resources #82095in respond to 2nd point – there is some bug in timeRuler.formatString for monthView – in this case only
start
is affected by this settings, theend
is shown without any format: for exampleviews: [ {type: 'monthView', timeRuler: {formatString: "HH:mm"} } ],
then hover title on appointment shows ’10:00 – 2015-11-24 15:00:00 …’
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.
-
AuthorPosts