Hello Everybody,
I have problem with OnClienLoad property. We create dynamicly radeditor code behind like this:
Basicly this is how we create Editor to Webpage. I have written my onLoadevent into page.aspx file. This is written onload event on codebehind
Every time i get following error message:
Exception on excetuing Client event onclientload error:'OnClientLoad' is undifined.
Please some tell what I am doing Wrong. We are using RadEditor 7.12.
I have problem with OnClienLoad property. We create dynamicly radeditor code behind like this:
| Dim editor As Control = CreateDhtmlEditor("editor") |
| Label1.Controls.Add(editor) 'Add control to label |
| 'Find RadEditor and add Ajax to component |
| Dim RadEd As Telerik.WebControls.RadEditor = CType(Page.FindControl("editor"),Telerik.WebControls.RadEditor) |
| RadAjaxManager1.AjaxSettings.AddAjaxSetting(btnOpenTemplate, CType(RadEd, Telerik.WebControls.RadEditor), AjaxLoadingPanel1) |
| RadAjaxManager1.AjaxSettings.AddAjaxSetting(btnOpenTemplate, CType(RadEd, Telerik.WebControls.RadEditor), AjaxLoadingPanel1) |
| 'add client side event |
| RadEd.OnClientLoad="OnClientLoad" |
Basicly this is how we create Editor to Webpage. I have written my onLoadevent into page.aspx file. This is written onload event on codebehind
| function OnClienLoad(editor) |
| { |
| alert('Editor'); |
| } |
Every time i get following error message:
Exception on excetuing Client event onclientload error:'OnClientLoad' is undifined.
Please some tell what I am doing Wrong. We are using RadEditor 7.12.