Hi,
I have a problem setting text/Value to WebTextEdit(Infragistics text box) which is placed inside WebTab using Client side scripting.
I am able to read the Text/value set but could not set value using Client side Scripting.
If i try getting the WebTextEdit object using the below piece of code..It always returns a NULL.
var obj = igedit_getById("WebTextEdit1");
Wheras using the following piece of code i was able to read the value but not set it.
var webTab = igtab_getTabById("UltraWebTab1");
var textBox1 = webTab.findControl("WebTextEdit1");
textBox1.value = "sample"; //Not working
I need to set text of the WebTextEditor using Java Script..
Suggestions on this would be Valuable..
Thanks in Advance...
When you do a findControl off the tab object you will get access to the html element. You will want to take the "Id" (I forget the casing) of this element and pass it into the editor utility function. So it would be something like this:
var webTab=igtab_getTabById("UltraWebTab1");
var textBox1=webTab.findControl("WebTextEdit1");
var textBox1object=igedit_getById(textBox1.Id);
textBox1object.setValue("my new value");
or you could do something like:
var anotherway=igedit_getById('<%= WebTextEdit1.ClientID %>');
anotherway.setValue("my new value other way");
Thanks..that was of great help :)
The second solution worked fine in my case.