选择RadComboBox中的第一个项目(Select The First Item In A RadComboBox)

编程入门 行业动态 更新时间:2024-10-12 12:33:19
选择RadComboBox中的第一个项目(Select The First Item In A RadComboBox)

我试图让RadComboBox选择结果集中的第一个项目,但是无法这样做。 我问过Telerik的人,他们也无法让它工作。 我有一个可供下载的演示项目:

https://rcpt.yousendit.com/1110087085/647dc0d8e5ed4f6763d1ab5e270f8c6b

如果我在输入字段中输入“购买”,我希望突出显示“可购买性”,因为它是结果集中的第一个项目。 我想要发生的下一件事是按[enter]键以便进行回发。 由于应选择“可购买性”,因此RadComboBox1.SelectedValue应为405,在回发后显示在标签中。 请注意,这些操作都不涉及使用鼠标选择结果集中的项目。

I'm trying to get a RadComboBox to select the first item in a result set but have not been able to do so. I have asked the Telerik folks and they can't get it to work either. I have a demo project available for download here:

https://rcpt.yousendit.com/1110087085/647dc0d8e5ed4f6763d1ab5e270f8c6b

If I type 'purchas' in the input field, I want 'purchasability' to be highlighted since it's the first item in the result set. The next thing I want to have happen is to press the [enter] key in order cause a postback. Since 'purchasability' should be selected, the RadComboBox1.SelectedValue should be 405, which is displayed in a label after the postback. Please note that none of these operations involve using the mouse to select an item in the result set.

最满意答案

我终于得到了Telerik的代码。 我在这里发布了解决方案

I finally got working code from Telerik. I posted a solution here

更多推荐

本文发布于:2023-07-15 05:46:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1110769.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:第一个   项目   RadComboBox   Select   Item

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!