Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dropdown not updating when visibility is set to false but when I changed its visibility = true, it's updating the value.

how to update the dropdown even it's visibility is false.

Thanks in advance
Posted
Comments
Faisalabadians 23-Dec-13 6:38am    
If you are concerning with just adding drop down items, then have a look at http://jsfiddle.net/92MzT/

As you are setting the visibility false, u can store the values in some collection object and bind it to the dropdown while changing the visibility to true.

If it doesn't help you send ur sample code to check it.
 
Share this answer
 
Comments
sathish kumar 23-Dec-13 7:54am    
using css class properties display = none and it's working perfect
Now, let's just think about this...

What is the sound of one hand clapping?
What does the invisible man see in the mirror?
How would a control that isn't visible generate anything in response to events it won't get because it isn't visible?

Don't use invisible controls and expect them to act identically to visible ones...
 
Share this answer
 
Comments
sathish kumar 23-Dec-13 7:54am    
using css class properties display = none and it's working perfect
Hi,

In place of set visible true or false, try with css. Set
CSS
display:none

for visible false.
 
Share this answer
 
Comments
sathish kumar 23-Dec-13 7:53am    
Thanks Viprat,

It's working perfect.
viprat 24-Dec-13 1:13am    
you welcome
You need to bind it again--- on the change event of dropdown,
and use css to hide or jquery method $('#ddl').hide(); and
//arly show
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900