Home Unanswered Active Tags New Question

Scheduler: Adding/Changing resources during postback

Hello!

I'm trying to change the whole resource tree when a user makes a selection in a drow down list.
The asp:DropDownList control contains the attribute AutoPostBack="true" and the Page_Load handler looks something like this.

DayPilotScheduler1.Resources.Clear();
DayPilotScheduler1.Resources.Add(new Resource(MyList.SelectedItem.Text, MyList.SelectedItem.Text));

However, it does not work. The Resources stay the way they were defined the first time.

I know there was a bug with this, so I upgraded to version 6.0.2078 (I copied the dll file, is there anything else I should do?), and it still doesn't work.

Please help and thanks in advance!

Asked by Viktor 1 year ago.
Replies

Found a workaround.

Resource changing doesn't work in Page_Load, but it works in the drop down list's event handler.

Comment posted by Viktor 1 year ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java