当visibility可见性设置为false时,下拉列表不会更新 [英] Dropdown not updating when visibility is set to false

查看:111
本文介绍了当visibility可见性设置为false时,下拉列表不会更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当可见性设置为false时,下拉列表不会更新,但是当我更改其visibility = true时,它会更新值。



如何更新下拉列表,即使它的可见性是假的。



提前谢谢

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

推荐答案

当您将可见性设置为false时,您可以存储某些集合对象中的值并将其绑定到下拉列表,同时将可见性更改为true。



如果它无法帮助您发送示例代码以进行检查。
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.


现在,让我们想一想......



单手拍手的声音是什么?

看不见的人在镜子里看到了什么?

如果一个不可见的控件如何生成任何东西以响应它不会得到的事件,因为它不可见? br />


不要使用不可见的控件,并期望它们与可见的控件完全相同...
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...






代替set visible true或false,尝试使用css。设置
Hi,

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



for visible false。


for visible false.


这篇关于当visibility可见性设置为false时,下拉列表不会更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆