【问题标题】:Prevent user Selection from Telerik RedComboBox防止用户从 Telerik RedComboBox 中选择
【发布时间】:2016-09-22 07:51:09
【问题描述】:

我在我的 aspx 页面中包含了 Telerik RedComboBox。我想在 RedComboBox 中显示项目列表,但不允许用户选择项目。

它总是应该显示默认值。

提前致谢。

【问题讨论】:

    标签: c# asp.net telerik telerik-combobox


    【解决方案1】:

    要禁用 Combobox ,您可以使用 enabled 和 disabled 属性。

    对于选择默认值,您可以使用以下内容:

    RadComboBoxItem item = ddl.FindItemByText(text of your default item here);
    item.Selected = true
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-09-25
      • 2011-01-20
      • 2012-10-01
      • 2013-03-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多