Home Unanswered Active Tags New Question

DayPilot Month with cancelled DataSource error

Hello.

For example, LinqDataSource (lds) as DataSourceID for DayPilot Month.

If you set e.Cancel = true on lds.Selecting you will see .net error (e.Result = Nothing behaves the same)

Version 6.1 was working perfect with that.

As a workaround: do not set e.Cancel = true, but instead return as e.Result = New {.......} with DateTime.MinValue

Is there a way to get e.Cancel = true fixed?

Dmitry

P.S.: sorry for my english

Asked by Dmitry 11 months ago.
Replies

Can you please post the exception details (stack trace)?

Comment posted by Dan Letecky 11 months ago.

[NullReferenceException]
DayPilot.Web.Ui.DayPilotMonth.PerformDataBinding(IEnumerable retrievedData) +687
DayPilot.Web.Ui.DayPilotMonth.OnDataSourceViewSelectCallback(IEnumerable retrievedData) +73
System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31
DayPilot.Web.Ui.DayPilotMonth.PerformSelect() +128
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
System.Web.UI.WebControls.BaseDataBoundControl.OnPreRender(EventArgs e) +22
System.Web.UI.Control.PreRenderRecursiveInternal() +80
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Control.PreRenderRecursiveInternal() +171
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

Comment posted by Dmitry 11 months ago.

Thanks! It's fixed now in build 2283. See the sandbox: http://www.daypilot.org/sandbox/

Answer posted by Dan Letecky 11 months ago.

Tested. Working. Thanks.

Comment posted by Dmitry 11 months ago.
New Reply
This reply is
Your name (optional):

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