search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Bubbles with dates on scheduler have static locale.

Asked by Bartosz
10 years ago.

Dear DayPilot Team,

I've spotted the potential bug in the JS version of your scheduler.
Even though I've set the scheduler locale to some other value (eg. fr-fr, as on the picture) those two bubbles which appears next to the cell I'm clicking to create new Event still contains the same pattern of dates - as shown in the picture.

Is there a way to explicitly choose the the schema of the date in the bubbles? I tried to find anything in DayPilot.Locale but it looks like there is nothing there. And if not, is there a way to prevent those frames from appearing at all?

Regards,
Bartosz

Answer posted by Dan Letecky [DayPilot]
10 years ago.

This is a bug, indeed - it should be fixed now in the latest sandbox build (8.1.1931):

http://javascript.daypilot.org/sandbox/

These indicators are disabled by default - you can enable them using .timeRangeSelectingStartEndEnabled property. It looks like the value is set to true in your project - just remove that setting to disable the indicators.

By the way, you can customize the text/HTML using onTimeRangeSelecting:

dp.onTimeRangeSelecting = function(args) {
  args.left.enabled = true;
  args.left.html = args.start.toString("d.M.yyyy");

  args.right.enabled = true;
  args.right.html = args.start.toString("d.M.yyyy");
};

You can also change the default date format directly using .timeRangeSelectingStartEndFormat (without using onTimeRangeSelecting). The default value is "MMMM d, yyyy":

dp.timeRangeSelectingStartEndFormat = "MMMM d, yyyy";
Comment posted by Bartosz
10 years ago.

Thank you for the quick responce!

But unfortunately I still have the same problem.. I tried:

  • timeRangeSelectingStartEndEnabled=false;
  • setting args.left/right.enable=false;
  • setting args.left/right.html="test / anything else";

and it still showing me the same.
I'm using v8.1.1895. Do you thing that this sandbox version might help?

http://i.imgur.com/qrRV1de.png

BR,
Bartosz

Comment posted by Dan Letecky [DayPilot]
10 years ago.

Yes, you will need the sandbox build. There was yet another bug (only affecting grid cells clicks - selecting multiple cells using drag and drop worked fine) that reset the enabled and html values (ignoring the onTimeRangeSelecting adjustments).

I didn't find any problem with timeRangeSelectingStartEndEnabled - it should work.

Nevermind - could you please give it a try using the latest sandbox build (now it is 8.1.1932)?

http://javascript.daypilot.org/sandbox/

Comment posted by Bartosz
10 years ago.

I tried with 8.1.1931 and it behaves the same either way.

But using dp.timeRangeSelectingStartEndFormat = "dd MMMM"; did the job ;)

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.