Hi,
I am using radeditor for my application. It showing a error message in track change pop window 'OutOfMemoryException'.
Because I am using a html file in radeditor content which contains more than 1000 lines.
Please the find image file attached, showing error message.
So give any suggestions and how to resolve it.
Thanks in Advance.
Regards
Utchimahali.N



if
(!grid.MasterTableView.IsItemInserted)
{
grid.MasterTableView.IsItemInserted =
true;
grid.Rebind();
}
I have hooked up the OnCommand client event for a confirmation from user when they hit cancel on the row.
grid.ClientSettings.ClientEvents.OnCommand = "RaiseCommand";
<script type="text/javascript">
function RaiseCommand(sender, args) {
if ( (args.get_commandName() == "CancelUpdate") || (args.get_commandName() == "CancelInsert")) {
if (confirm('Are you sure you want to clear all of the answers for this row?')) {
args.set_cancel(
false);
}
else {
args.set_cancel(
true);
}
}
}
</script>
The problem is if the user confirms the cancel, the CancelCommand never gets fired for the Insert Row. It fires correctly for the Edit Row. I want to trap the CanceCommand to clear the insert row from any contents. Please help
| <EditItemTemplate> |
| <telerik:RadEditor ID="reTest" runat="server" |
| ContentAreaCssFile="http://path/to/cc.css" |
| StripFormattingOnPaste="MSWordRemoveAll" |
| ToolsFile="~/App_Data/RadEditor/Tools.xml" |
| OnClientPasteHtml="PasteFormatting" |
| OnClientCommandExecuting="ChangeImageManager" |
| OnClientLoad="OnClientLoad" |
| Content='<%# Eval("Object.HTML") %>'> |
| <ImageManager MaxUploadFileSize="2097152" /> |
| <Content><p></p></Content> |
| </telerik:RadEditor> |
| </EditItemTemplate> |
| function OnClientLoad(editor, args) |
| { |
| alert("start"); |
| alert(editor); |
| editor.attachEventHandler("oncontrolselect", function() |
| { |
| alert("attachEventHandler"); |
| //Check if image |
| window.setTimeout(function() |
| { |
| alert("setTimeout"); |
| var selElem = editor.getSelection().getParentElement(); |
| if (selElem.tagName == "IMG") |
| { |
| //Store current width and height |
| curWidth = selElem.offsetWidth; |
| curHeight = selElem.offsetHeight; |
| //Possible to resize, so attach eventhandler |
| selElem.onresizeend = function(e) |
| { |
| var resized = false; |
| alert("onresizeend"); |
| if(selElem.style.pixelWidth > <%=System.Configuration.ConfigurationManager.AppSettings["editorMaxWidth"] %>) |
| { |
| selElem.style.pixelWidth = <%=System.Configuration.ConfigurationManager.AppSettings["editorMaxWidth"] %> |
| resized = true; |
| } |
| if(selElem.style.pixelHeight > <%=System.Configuration.ConfigurationManager.AppSettings["editorMaxHeight"] %>) |
| { |
| selElem.style.pixelHeight = <%=System.Configuration.ConfigurationManager.AppSettings["editorMaxHeight"] %> |
| resized = true; |
| } |
| if(resized) |
| { |
| alert('Your image cannot be larger than <%=System.Configuration.ConfigurationManager.AppSettings["editorMaxHeight"] %> x <%=System.Configuration.ConfigurationManager.AppSettings["editorMaxHeight"] %>'); |
| } |
| // selElem.onresizeend = null;//remove handler |
| }; |
| } |
| }, 0); |
| }); |
| } |
