DayPilot Month with cancelled DataSource error
Asked by Dmitry
15 years ago.
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
Comment posted by Dan Letecky
15 years ago.
Can you please post the exception details (stack trace)?
Comment posted by Dmitry
15 years 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
Answer posted by Dan Letecky
15 years ago.
Thanks! It's fixed now in build 2283. See the sandbox: http://www.daypilot.org/sandbox/
Comment posted by Dmitry
15 years ago.
This question is more than 1 month old and has been closed. Please create a new question if you have anything to add.