on ‎2009 Aug 17 12:42 PM
Hi Experts,
I have the issue about Dropdown box disable. My requirement is i have one dropdown in my acreen and initially it should be in a disable mode. If user clicks the edit button, then the dropdown box will change to the Edit mode.
For disable the dropdown box there is no parameter available in HTMLB. so i serached in SDN and found th following thread.
I tried dhurairaj code from the above thread using javascript. ts working the dropdown is disabled now but still user able to select the data's from dropdown box.
But for my requirement if the dropdown is disable mode it should allow user's to select the values from on it. Im using MVC and can anybody help me on this?
Your helps will be appreciated,
Thanks in Advance.
Request clarification before answering.
Hi Nandhini,
There is an attribute disabled for dropdownlist.Keep it as true.
Here is a sample code:
<htmlb:dropdownListBox id="estatus" disabled="TRUE" >
<htmlb:listBoxItem key = "select"
value = "Select" />
<htmlb:listBoxItem key = "Single"
value = "Single" />
<htmlb:listBoxItem key = "Committed"
value = "Committed" />
</htmlb:dropdownListBox>Hope thi shelps you.
Regards,
Rajani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.