Hi!
I have a RadEditor in an InsertTemplate in a RadGrid. The problem is: If I click a save-button i have in the same template and try to insert the text from the editor to the database, then the grid performs a callback, and all text is removed from the editor.
The same happens if I try to set a text in the editor when I click the button in the grid which opens the InsertTemplate, and also if I try to save the text from the editor directly to a grid when I save.
It seems that the editor clears all text and settings at each callback. Could it be that it is cleared when I declare it through the following in the ItemCommand of the grid:
RadEditor editTTNewThread = (RadEditor)editFormItem.FindControl("editTTNewThread");
I had the same problems with edit and callback in earlier versions. I tried the same in IE8, and there I manage to set the text programmatically, just after the declaration above, but the same happens when I click the save-button. The editor is cleared.
Edit: In the previous version of the RadControls, I had to use postback instead of callback for it to work, but I really hope that can be avoided.
Another edit: I have now tried the editor in other pages as well, and it seems that every time I use callback on an editor, all the content is cleared.
Any ways to fix this issue?
Cheers,
Erlend Haukland
I have a RadEditor in an InsertTemplate in a RadGrid. The problem is: If I click a save-button i have in the same template and try to insert the text from the editor to the database, then the grid performs a callback, and all text is removed from the editor.
The same happens if I try to set a text in the editor when I click the button in the grid which opens the InsertTemplate, and also if I try to save the text from the editor directly to a grid when I save.
It seems that the editor clears all text and settings at each callback. Could it be that it is cleared when I declare it through the following in the ItemCommand of the grid:
RadEditor editTTNewThread = (RadEditor)editFormItem.FindControl("editTTNewThread");
I had the same problems with edit and callback in earlier versions. I tried the same in IE8, and there I manage to set the text programmatically, just after the declaration above, but the same happens when I click the save-button. The editor is cleared.
Edit: In the previous version of the RadControls, I had to use postback instead of callback for it to work, but I really hope that can be avoided.
Another edit: I have now tried the editor in other pages as well, and it seems that every time I use callback on an editor, all the content is cleared.
Any ways to fix this issue?
Cheers,
Erlend Haukland
