Home Unanswered Active Tags New Question

Reject new values from server-side

Hi,
I’m using DayPilotScheduler resize event, to update new start and end dates of my events into data base.

Before accept those changes, some server-side validations are done and new values must be validated.

The problem is that when new values don’t pass server-side validations and new data is rejected, DayPilotScheduler has already drawn them and when server-side code calls DayPilotScheduler update method, it doesn’t refresh itself with the previous dates.

Is there any workaround to acomplish that?

Here is some piece of our code.
protected void DayPilotScheduler1_EventResize(object sender, DayPilot.Web.Ui.Events.EventResizeEventArgs e)
{
#region Simulation of database update

DataRow dr = table.Rows.Find(e.Value);
if (dr != null)
{
dr["start"] = e.NewStart;
dr["end"] = e.NewEnd;
//table.AcceptChanges();
table.RejectChanges();
}

#endregion

setDataSourceAndBind();
DayPilotScheduler1.Update();//doesn’t refresh previous data unless you reload the page
}

We’re looking forward your answer,
Best regards,

Asked by Josep 5 months ago.
Replies
No reply yet.
New Reply
This reply is
Your name (optional):

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