Hi i have used one WebTabControl. Inside the WebTabControl i placed one WebTextEditor so now how can i get the WebTextEditor value using Javascript.
Anybody suggest the solution please.
Thanks
Hello Bala,
Please feel free to contact me if you have any additional questions regarding this matter.
Thank you for contacting Infragistics Developer Support.
What I can suggest for achieving your requirement is using the ClientID property to get reference to the editor. This property gets the control ID from HTML markup that is generated by ASP.NET. Afterwards, by using the get_value() method the value could be retrieved.
I made a small sample project illustrating my suggestion and I am attaching it for your reference. In my sample on a button click alert with the current value of the editor is displayed as such:
function getEditorID() { var editor = $find("<%=WebTextEditor1.ClientID%>"); var editorValue = editor.get_value(); alert("The value of the editor is " + editorValue); }
function getEditorID() {
var editor = $find("<%=WebTextEditor1.ClientID%>");
var editorValue = editor.get_value();
alert("The value of the editor is " + editorValue);
}
I am attaching my sample for your reference.
Please let me know if you have any additional questions regarding this matter.
Regards,
Vasya Kacheshmarova
Developer Support Engineer
Infragistics