or
hi,
I am loading a custom ToolsFile.xml into Radeditor with
"LoadToolsFile(dom)"
.
after a postback some tools like colorselection do no longer work, because
of a javascript error in the Editor script.
now i found out that reloading the tools-xml file on every request fixes the issue, but in my
understanding, the editor should be recreated from viewstate after postback?
regards,
peter
LinkButton btn = (LinkButton)e.Item.FindControl("PhotoLinkButton"); string id = DataBinder.Eval(e.Item, "PhotoID").ToString(); btn.Attributes.Add("onclick", string.Format("viewImage({0}); return false;", id));<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default4.aspx.vb" Inherits="Default4" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %><%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="rad" %><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> </head><body> <form id="form1" runat="server"> <div> <asp:ToolkitScriptManager ID="tool123" runat ="server" ScriptMode ="Release" > </asp:ToolkitScriptManager> <rad:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <rad:AjaxSetting AjaxControlID="btn_sb"> <UpdatedControls> <rad:AjaxUpdatedControl ControlID="lab_nm" LoadingPanelID ="RadAjaxLoadingPanel1" /> </UpdatedControls> </rad:AjaxSetting> </AjaxSettings> </rad:RadAjaxManager> <rad:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="" Transparency="30"> <asp:Image ID="Image1" runat="server" ImageUrl="~/IMAGES/AjaxLoadingImg/LoadingProgressBar.gif" AlternateText="loading" /> </rad:RadAjaxLoadingPanel> <asp:Button ID="btn_sb" runat="server" Text="Telerik" /><br /> <asp:Label ID="lab_nm" runat="server" ></asp:Label> </div> </form></body></html>--------------------------------------------------------------------------------------------------------------- Protected Sub btn_sb_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn_sb.Click lab_nm.Text = "You Clicked Telerik Button" End Subbtn_sb it should enable false and showing some text like "submitting" after page submitted it returns to enabled true..