Crosspost from stackoverflow, original post here.
If when binding to a TextEditor I use this syntax:
Text='<%# Bind("DESCRIPTION") %>'
I get the following error upon submitting the form:
InnerMessage:Object reference not set to an instance of an object.
InnerStackTrace:
at DotNetNuke.UI.UserControls.TextEditor.get_Text()
at ASP.desktopmodules_mymodule_view_ascx.__ExtractValues__control16(Control __container)
at Telerik.Web.UI.GridTemplateColumn.FillValues(IDictionary newValues, GridEditableItem editableItem)
at Telerik.Web.UI.GridEditableItem.ExtractValues(IDictionary newValues)
at Telerik.Web.UI.GridTableView.ExtractValuesFromItem(IDictionary newValues, GridEditableItem editedItem)
at Telerik.Web.UI.GridItemBuilder.CreateItems(GridGroupingContext group)
It seems that calling the Text property getter is failing within the databinding layer.
If I replace the call to bind with Eval:
Text='<%# "DESCRIPTION") %>'
Then the submit ignores the field of course, but I can catch the datasource updating property and get the text out of the text property manually and put it on the entity. The Text property getter does not throw an error for me.
Why won't binding work automatically? Note, this TextEditor is within a EditItemTemplate of a DnnGrid. I'm not sure if that's related - I've not tried binding to one outside of the grid.