Welcome Guest Search | Active Topics | Sign In | Register

Change ComboBox display to Hint Text on client side Options
Joan Darling
Posted: Thursday, March 1, 2012 4:37:20 PM
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...");
eo_support
Posted: Tuesday, March 13, 2012 1:50:38 PM
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!
Joan Darling
Posted: Tuesday, March 13, 2012 2:04:30 PM
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
eo_support
Posted: Tuesday, March 13, 2012 2:36:18 PM
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!
Joan Darling
Posted: Tuesday, March 13, 2012 4:08:38 PM
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?
eo_support
Posted: Tuesday, March 13, 2012 4:32:03 PM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.