I've bumped up against an unexpected roadblock when trying to extract the entered HTML from a GridHTMLEditorColumn.
Briefly, I have something like this:
In the Grid:
Extracting the value:
Then:
Or:
Nothing works. I can get hold of all my other bound column values. But I can't for the life of me work out how to get the HTML content.
Help!
Richard
Briefly, I have something like this:
In the Grid:
<telerik:GridHTMLEditorColumn DataField="Content" HeaderText="Content" UniqueName="Content" Visible="false"></telerik:GridHTMLEditorColumn>Extracting the value:
var hashTable = new Hashtable();using (var ownerTableView = e.Item.OwnerTableView){ ownerTableView.ExtractValuesFromItem(hashTable, editedItem);}Then:
if (hashTable.ContainsKey("Content")){ this.Content = hashTable["Content"].ToString();}Or:
var tableCell = editedItem["Content"];if (tableCell != null){ var radEditor = tableCell.Controls[0] as RadEditor; if (radEditor != null) { // At this point, all I have is string.Empty for radEditor.Content this.Content = string.IsNullOrEmpty(radEditor.Content) ? string.Empty : radEditor.Content; }}Nothing works. I can get hold of all my other bound column values. But I can't for the life of me work out how to get the HTML content.
Help!
Richard