This is a migrated thread and some comments may be shown as answers.

Load on demand and validators

1 Answer 84 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 21 Feb 2008, 07:51 PM
I have a screen with a three or four RadComboBox controls. I have been unsuccessful in getting the RequiredFieldValidator to work with the RadComboBox control when they have load on demand enabled (which all of these do). I understand that there is a bug with respect to RadComboBox control and validators. Does this bug also relate to the control's ability to work when load on demand is enabled?

1 Answer, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 2
answered on 24 Feb 2008, 01:54 AM
Hey Thomas - I tried it on my end and didn't find any issues with the required field validator & RadCombo w/Load on Demand.

    <form id="form1" runat="server"
    <div> 
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
        </telerik:RadScriptManager> 
        <telerik:RadComboBox ID="RadComboBox1" runat="server" EnableLoadOnDemand="True"  
            RadComboBoxImagePosition="Right" MarkFirstMatch="True"
        </telerik:RadComboBox> 
        <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator1" runat="server"  
            ErrorMessage="Required" ControlToValidate="RadComboBox1"></asp:RequiredFieldValidator> 
        <asp:Button ID="Button1" runat="server" Text="Button" />    
    </div> 
    </form> 


Imports Telerik.Web.UI 
 
Partial Class _Default 
    Inherits System.Web.UI.Page 
 
    Protected Sub RadComboBox1_ItemsRequested(ByVal o As ObjectByVal e As Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs) Handles RadComboBox1.ItemsRequested 
        RadComboBox1.Items.Add(New RadComboBoxItem("Apples")) 
        RadComboBox1.Items.Add(New RadComboBoxItem("Oranges")) 
        RadComboBox1.Items.Add(New RadComboBoxItem("Pears")) 
    End Sub 
End Class 

Tags
ComboBox
Asked by
Thomas
Top achievements
Rank 1
Answers by
Michael
Top achievements
Rank 2
Share this question
or