If when linking to TextEditor I use this syntax:
Text='<%# Bind("DESCRIPTION") %>'
When I submit the form, I get the following error:
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 attribute is not working in the data binding layer.
If I replaced the call with a binding with Eval:
Text='<%# Eval("DESCRIPTION") %>'
Submit then ignores the field, of course, but I can catch the update property of the data source and output the text from the text property manually and put it in the object. The recipient of the Text property does not give me an error.
Why is automatic operation not necessary? Note: this TextEditor is in the EditItemTemplate editor of DnnGrid. I'm not sure if this is connected - I have not tried to snap to one outside the grid.
TheSoftwareJedi
source share