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

Update Ressource-Column with callback

Asked by Stefan Lederer
16 years ago.

Hello!

Is it possible to update the ressource column in the callback method of the eventmove? I would like to place there the todays working time and icrease this time everytime I drop an event from outside the daypilot to the ressource.

greetings

stefan

Comment posted by neokglitch
16 years ago.

I have the same question how do we update the headercolumns in resourceview wen using a callback.

And stefan did you alreadymanage toget the working time per day?

Comment posted by Dan Letecky
16 years ago.

The new version of DayPilotScheduler will be able to do this. The Update() method now has a new parameter that specifies what should be updated:

public void Update(CallBackUpdateType updateType);

CallBackUpdateType is an enum with the following values:

  • None
  • EventsOnly
  • Full

EventsOnly is the default value and it corresponds to the previous behavior. Full value reloads both events and headers (including the upper-left corner, see also forums.daypilot.org/Topic.aspx/561/how_to_update_the_content_of_top_left_corner_cell_on_schedul).

Comment posted by Dan Letecky
16 years ago.

See also release notes for DayPilot Pro 5.0.

Comment posted by Dan Letecky
16 years ago.

Update: The resources column still can't be updated using CallBack in DayPilot Pro 5.0. However, it will be implemented in DayPilot Pro 5.0 SP1.

Comment posted by neokglitch
16 years ago.

Ok i am running DayPilot Pro 5.0 SP1 and trying to update the resource columns.

This is my defineColumns it shows the DateTime.Now in the headers:

private void defineColumns()
{
DayPilotCalendar1.Columns.Clear();

DateTime first = DayPilotCalendar1.StartDate;

for (int i = 0; i < 7; i++)
{
DateTime dayColumn = first.AddDays(i);
Column c = new Column(dayColumn.ToString("dddd dd-MM-yyyy"), dayColumn.ToString("s"));
c.Date = dayColumn;
DayPilotCalendar1.Columns.Add(c);
Column c1 = new Column(DateTime.Now.ToString(), "A");
c1.Date = dayColumn;
c.Children.Add(c1);
}
}

That works fine but wen i use DayPilotCalendar1.Update(CallBackUpdateType.Full); in my DayPilotCalendar1_EventMove / Delete / Update /Resize the time in the headers wont update.

It only works if i use a javascriptdpc1.refreshCallBack(null,7);

Am i missing something?


Comment posted by Dan Letecky
16 years ago.

It's supported in DayPilotScheduler so far. The support in DayPilotCalendar will be coming soon.

Comment posted by neokglitch
16 years ago.

Ok thanks for your reply.

Any idea in wich roadmap it will be?

Comment posted by Dan Letecky
16 years ago.

It will be included in DayPilot Pro 5.1.

Comment posted by NeokGlitch
15 years ago.

Thnx Dan.

I see you got some time now to answer all the forum questions ;)

Good luck!

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