使用 RadComboBox 按钮,当一个组合框进行选择时是否可以填充不同的组合框?

发布于 2024-08-22 15:58:23 字数 325 浏览 4 评论 0原文

我有两个级联的组合框。

我希望拥有它,以便当我在 ComboBox1 中选择某些内容时,它将触发一个 Web 方法,自动过滤 ComboBox2 中的列表。

目前,当我触发 ComboBox2 Web 服务时,我将 ComboBox1 的值添加到 ComboBox2 Web 服务的上下文键中,但是,我注意到该 Web 服务仅在我修改 ComboBox2 中的值时才会触发,而不是在我单击“显示列表”按钮。

当我更改 ComboBox1 时,是否可以调用并动态更改 ComboBox2 的列表,或者是否可以在 RadComboBox 中为任何客户端事件(例如打开列表)请求对服务器的回调?

I have two combo boxes that are cascading.

I would like to have it so that when I select something in ComboBox1, it will fire off a web method that automatically filters the list in ComboBox2.

At the moment, I'm adding the value of ComboBox1 to the context key of the ComboBox2 web service when I'm firing it, however, I've noticed that this web service only fires when I modify the value in ComboBox2, not when I click the showList button.

Is it possible to call and dynamically change the list of ComboBox2 when I change ComboBox1, or is it possible in RadComboBox to request a callback to the server for any of the client events such as opening up the list?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

虐人心 2024-08-29 15:58:23

我正在研究这个问题,最后我得到了解决方案。如果您检查组合框的属性,您会发现该方法,其中有方法调用 valuechanged。您必须在该方法中为组合框 1 调用该方法并绑定组合框 2。

我认为它会起作用,因为它对我有用。

如果您得到答案,请检查我的答案并投票。谢谢

I have work on this issue and finally i got solution.there is method call valuechanged if you check the properties of combobox you will find that method.you have to call that for combobox 1 and bind combobox 2 within that method.

i think it will work cz it is working for me.

IF you got answer check my answer and vote it.thanx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文