Telerik Client API doesn't work

Dec 22, 2010 at 8:51 PM

Using the standard telerik provider or the rad editor by itself, you could access the editor with something as simple as:

 

 

var editor = $find(ClientIdofEditorControl);

 

That doesn't work when the dnnWerk provider is used instead of the default dnn rad provider. Any idea what needs to be done differently?

Dec 22, 2010 at 9:11 PM
Edited Dec 22, 2010 at 9:11 PM

Looks like your provider isn't setting an ID for the editor control so it is being randomly assigned.  The default dnn editor provider uses the same id as the one assigned to texteditor.ascx control.  If I load texteditor.ascx and set the id to 'txtBody' then the rad editor will get the id of txtBody_txtBody.  This will then allow to access the editor with client api using the ClientId of the control.