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

Scheduler: Adding/Changing resources during postback

Asked by Viktor
14 years ago.

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!

Comment posted by Viktor
14 years ago.

Found a workaround.

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

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