In ASP.NET MVC you can request a server-side refresh using Command event handler.
1. Store the filter (the selected user) in the clientState property and invoke the Command event handler:
var selectedUser = $("#user").val(); // jQuery
dp.clientState = { user: selectedUser };
dp.commandCallBack("refresh");
2. On the server side, handle OnCommand() and load the events using the filter value:
class Dps : DayPilotScheduler
{
protected override void OnCommand(CommandArgs e)
{
switch (e.Command)
{
case "refresh":
string user = (string) ClientState["user"];
Events = // ... load events using the "user" value as filter
UpdateWithMessage("Refreshed");
break;
}
}
}
The ClientState value will remain the same until you change it either on the server side or on the client side.
See also:
http://doc.daypilot.org/scheduler/commandcallback/