Load on demand and validators

2 posts, 0 answers
  1. Thomas
    Thomas avatar
    143 posts
    Member since:
    Feb 2007

    Posted 21 Feb 2008 Link to this post

    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?
  2. Michael
    Michael avatar
    58 posts
    Member since:
    Jan 2008

    Posted 23 Feb 2008 Link to this post

    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"
            <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
            <telerik:RadComboBox ID="RadComboBox1" runat="server" EnableLoadOnDemand="True"  
                RadComboBoxImagePosition="Right" MarkFirstMatch="True"
            <asp:RequiredFieldValidator Display="Dynamic" ID="RequiredFieldValidator1" runat="server"  
                ErrorMessage="Required" ControlToValidate="RadComboBox1"></asp:RequiredFieldValidator> 
            <asp:Button ID="Button1" runat="server" Text="Button" />    

    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 

Back to Top