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

Reject new values from server-side

Asked by Josep
13 years ago.

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,

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