Asp.net 带有自定义文本的按需加载的服务器验证RadComboBox为true

Asp.net 带有自定义文本的按需加载的服务器验证RadComboBox为true,asp.net,telerik,Asp.net,Telerik,如何使用LoadonDemand true和AllowCustomText true验证服务器端的RadComboBox?我有以下代码,但没有正确验证 protected void RadComboBox1ServerValidate(object sender, ServerValidateEventArgs arg) { arg.IsValid = RadComboBox1.SelectedValue.Length > 0; } 使用LOD时,请选

如何使用LoadonDemand true和AllowCustomText true验证服务器端的RadComboBox?我有以下代码,但没有正确验证

  protected void RadComboBox1ServerValidate(object sender, ServerValidateEventArgs arg)
    {
        arg.IsValid = RadComboBox1.SelectedValue.Length > 0;
    }

使用LOD时,请选中组合框的选定文本或值,而不是其选定值。

在组合框\u SelectedIndexChange事件中,如果存在selectedvalue>0,请选中RadComboBox。如果选择的值>0,则必须认为输入的自定义文本