|
Rank: Advanced Member Groups: Member
Joined: 3/9/2010 Posts: 119
|
I would like to set the combobox's display to the Hint Text on the client side but I could not find function so I tried to change the text but the error, text unidentified, was trown. The code I'm using is; Is it possable to reset the combobox's display to the hint text? Why is the error being thrown from this code?
Code: JavaScript
var combo = eo_GetObject("<%=cboTask.ClientID %>");
combo.setText("Select task...");
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Your code is correct if you wish to set the ComboBox text. The code should not throw an error. If it does, please try to create a test page demonstrating the problem and we will take a look.
To change combobox to display the hint text, you should call setText(null).
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 3/9/2010 Posts: 119
|
When I run the code this is the result I get. Any idea what 'text' is and why it is undefined?
The getText() returns the appropiate value ?combo.getText() "0409TM-02:Delivery Order 1" trimLeft: function(){return EO937.f.aho(this);} trimRight: function(){return EO937.f.ahq(this);}
The setText function returns the following combo.setText(null) 'text' is undefined
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
That is a bug. We will PM you a newer build that should fix the problem.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 3/9/2010 Posts: 119
|
I installed the update and setText() is now working; however, using setText(null) sets the text to 'null' using setText() sets the text to 'unidentified' and setText("") blanks the text. With this update is there a way to display the hint text?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
In that case please provide a test page. What we gave you is the latest available build and we have verified setText(null) works fine here.
Thanks!
|
|