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

Switching event calendar(javascript) from 'Resources' and 'Days'/'Week' not updating the headers

Asked by RajeshB
9 years ago.

I'm evaluating the Daypilot Pro Javascript for my project.
I have a button to switch between the Days/Week and resources-view.
When i try to switch from 'Resources' view to 'Days/Week' view the Resource name headers are not replaced by dates.
To achieve the above, do i need to write the script to prepare the columns and assign it to dpc.columns?

Kindly help me to fix this.

Fiddle can be found here: http://jsfiddle.net/RajeshBoora/kg056t2z/

Comment posted by RajeshB
9 years ago.

I'm using the Daypilot Event Calendar Pro javascript(version - 1418).

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

It's now fixed in the latest build (7.9.1428).

Just note that .init() is called automatically from the jQuery plugin. The second call to .init() is ignored. This means the following part of code has no effect:

    dps.heightSpec = "Auto";//Parent100Pct
    dps.cellDuration = 30;
    dps.startDate ="2015-01-06";
    //dps.businessBeginsHour = 10;
    //dps.businessEndsHour = 24;
    dps.init();

These properties will be applied during the next .update() call (it this example, it's when you click the Switch button).

You should move these settings to the jQuery plugin options parameter or replace .init() with .update().

Comment posted by RajeshB
9 years ago.

Thanks for your quick reply.
When i'm downloading the 'Daypilot Pro Javascript' from http://javascript.daypilot.org/try/, i get the 1418. I believe the 1429 version is not yet released. How/When can i download 1429 version of Daypiolt Pro javascript?

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

You can download the latest build in the sandbox:

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

Comment posted by RajeshB
9 years ago.

Thanks Dan...

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