I have a upload button on the custom webpart designed and used in SharePoint 2010. On the Click event of the upload button the content in the SpRadeditor reloads, which hangs the pages for a while and then reloads the content leading to slowness of the process.
This works fine, if the content of the SPRadEditor is small.
How can i stop the rad editor from reacting to the Click event of the particular button?
I referred the below specified forum and tried to apply the javascript as specified in the forum but it didn't help. Could you please help on the same?
http://www.telerik.com/community/forums/aspnet-ajax/editor/stop-rad-editor-refreshing-on-timer-tick-event.aspx
This works fine, if the content of the SPRadEditor is small.
How can i stop the rad editor from reacting to the Click event of the particular button?
I referred the below specified forum and tried to apply the javascript as specified in the forum but it didn't help. Could you please help on the same?
http://www.telerik.com/community/forums/aspnet-ajax/editor/stop-rad-editor-refreshing-on-timer-tick-event.aspx
<script type="text/javascript">
function AvoidTelerikRefresh() {
var originalSaveContent = Telerik.Web.UI.RadEditor.prototype.saveContent;
Telerik.Web.UI.RadEditor.prototype.saveContent = function () { };
}
</script>
<asp:Button runat="server" ID="btnUpload" Text="Upload" CssClass="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"
OnClick="btnUpload_Click" OnClientClick="AvoidTelerikRefresh();" />