Hi!
I was reading all articles, like this:
Deleting records
Automatic DataSource operations
Insert/Update/Delete
Client-side delete
but it doesn't help me.
I found the reason, but i don't know how to solve it. On my site, i am using RadGrid for administrate news, and there i am using RadEditor in RadGrid
example:
//---------------------------
<telerik:GridTemplateColumn UniqueName="RadEditorColumn1" CurrentFilterFunction="NoFilter"
FilterListOptions="VaryByDataType" ForceExtractValue="None">
<EditItemTemplate>
<telerik:RadEditor ID="RadEditor1" OnClientLoad="OnClientLoad" runat="server" Skin="Default2006" Content='<%# Bind("previewtext") %>'
Height="300px" Width="800px" FlashManager-UploadPaths="~/Admin/uploads_files/flash" FlashManager-ViewPaths="~/Admin/uploads_files" FlashManager-DeletePaths="~/Admin/uploads_files/flash" ImageManager-DeletePaths="~/Admin/uploads_files/images" ImageManager-UploadPaths="~/Admin/uploads_files/images" ImageManager-ViewPaths="~/Admin/uploads_files" MediaManager-DeletePaths="~/Admin/uploads_files/files" MediaManager-UploadPaths="~/Admin/uploads_files/images" MediaManager-ViewPaths="~/Admin/uploads_files/files" DocumentManager-DeletePaths="~/Admin/uploads_files/doc" DocumentManager-UploadPaths="~/Admin/uploads_files/doc" DocumentManager-ViewPaths="~/Admin/uploads_files" />
<script type="text/javascript">
function OnClientLoad(editor, args) {
var style = editor.get_contentArea().style;
style.backgroundImage = "none";
style.backgroundColor = "white";
}
</script>
</EditItemTemplate>
</telerik:GridTemplateColumn>
//--------------------------
And when i want to delete some record it gives me an error "Object reference not set to an instance of an object.", but if i dont use RadEditor in RadGrid, delete works fine.
How can i delete records, using RadEditor in RadGrid?
Insert, Update, Edit, Refresh, Add new record - work fine.
I was reading all articles, like this:
Deleting records
Automatic DataSource operations
Insert/Update/Delete
Client-side delete
but it doesn't help me.
I found the reason, but i don't know how to solve it. On my site, i am using RadGrid for administrate news, and there i am using RadEditor in RadGrid
example:
//---------------------------
<telerik:GridTemplateColumn UniqueName="RadEditorColumn1" CurrentFilterFunction="NoFilter"
FilterListOptions="VaryByDataType" ForceExtractValue="None">
<EditItemTemplate>
<telerik:RadEditor ID="RadEditor1" OnClientLoad="OnClientLoad" runat="server" Skin="Default2006" Content='<%# Bind("previewtext") %>'
Height="300px" Width="800px" FlashManager-UploadPaths="~/Admin/uploads_files/flash" FlashManager-ViewPaths="~/Admin/uploads_files" FlashManager-DeletePaths="~/Admin/uploads_files/flash" ImageManager-DeletePaths="~/Admin/uploads_files/images" ImageManager-UploadPaths="~/Admin/uploads_files/images" ImageManager-ViewPaths="~/Admin/uploads_files" MediaManager-DeletePaths="~/Admin/uploads_files/files" MediaManager-UploadPaths="~/Admin/uploads_files/images" MediaManager-ViewPaths="~/Admin/uploads_files/files" DocumentManager-DeletePaths="~/Admin/uploads_files/doc" DocumentManager-UploadPaths="~/Admin/uploads_files/doc" DocumentManager-ViewPaths="~/Admin/uploads_files" />
<script type="text/javascript">
function OnClientLoad(editor, args) {
var style = editor.get_contentArea().style;
style.backgroundImage = "none";
style.backgroundColor = "white";
}
</script>
</EditItemTemplate>
</telerik:GridTemplateColumn>
//--------------------------
And when i want to delete some record it gives me an error "Object reference not set to an instance of an object.", but if i dont use RadEditor in RadGrid, delete works fine.
How can i delete records, using RadEditor in RadGrid?
Insert, Update, Edit, Refresh, Add new record - work fine.