Thanks for the workaround Karthikeyan. Improving on your solution a bit…
- I would put the code in the “ready” callback rather than “rendered”, since rendered gets called multiple times (ready only gets called once)
- I suggest using the built-in jqx.date rather than adding the unnecessary “moment” library
- And just for good measure, use try/catch (as you always should)
So something like:
ready: function () {
try {
$('[data-date="' + new $.jqx.date().toString("yyyy-MM-dd 00:00:00") + '"]').css("background", "#f8efc8");
} catch (errMsg) { YourErrorHandler(errMsg); }
}