jQWidgets Forums

Forum Replies Created

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

  • thesled
    Participant

    Bug is still there in version 8.3.2. Any idea when it will be fixed?

    in reply to: today highlight today highlight #107089

    thesled
    Participant

    Correction… adding the above code to “ready” function will cause the highlighted cell to reset (back to blank) when the view is updated (by opening edit dialog, etc.). So add the above code to the “rendered” function as Karthikeyan suggested.

    in reply to: today highlight today highlight #107087

    thesled
    Participant

    Thanks for the workaround Karthikeyan. Improving on your solution a bit…

    1. I would put the code in the “ready” callback rather than “rendered”, since rendered gets called multiple times (ready only gets called once)
    2. I suggest using the built-in jqx.date rather than adding the unnecessary “moment” library
    3. 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); }
    }
Viewing 3 posts - 1 through 3 (of 3 total)