将radcombobox选定的值清除为null [英] clearing radcombobox selected value to null

查看:138
本文介绍了将radcombobox选定的值清除为null的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友.
当我清除radcombobox文本属性时,所选值仍然有效.我想在清除text属性时将所选值设置为null.我该怎么办?
谢谢.

Hi my dear friends.
when i clear the radcombobox text property the selected value is still valued. i want to set the selected value to null when i clear the text property. How can i do that?
thanks.

推荐答案

您最好从telerik论坛中提出这个问题.这是一个从那里废除类似问题的线程

http://www.telerik. com/community/forums/aspnet/combobox/how-do-i-clear-a-radcombobox- includes-selecteditem.aspx [
You better ask this question from telerik forum. here is a thread from there disusing similar problem

http://www.telerik.com/community/forums/aspnet/combobox/how-do-i-clear-a-radcombobox-including-selecteditem.aspx[^]


set
combo.selectedIndex = -1



祝您编码愉快!
:)



Happy Coding!
:)


您可以将一个键值对添加到comboBox的数据源.当显示成员为string.Empty时,将其值设置为null或int.MinValue.
You can add one key value pair to data source of comboBox. Set its value to null or int.MinValue when display member is string.Empty.


这篇关于将radcombobox选定的值清除为null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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