Client Side valiadations for Rad controls in User control is not firing

3 posts, 0 answers
  1. Suja Kanak
    Suja Kanak avatar
    2 posts
    Member since:
    Mar 2010

    Posted 24 Mar 2010 Link to this post

    Hello All,

    Client Side valiadations for Rad controls in User control is not firing in the aspx page.

    Kindly  help.

    Regards,
    Suja
  2. robertw102
    robertw102 avatar
    265 posts
    Member since:
    Jul 2007

    Posted 24 Mar 2010 Link to this post

    I would suggest showing us some code that shows how your validating the RadComboBox controls, in order to get help.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Suja Kanak
    Suja Kanak avatar
    2 posts
    Member since:
    Mar 2010

    Posted 26 Mar 2010 Link to this post

    Hi,

    Below is the brief description

    The Rad combo box in user control

     

    <telerik:RadComboBox ID="ddlCustomerName"

     

     

    runat="server"

     

     

    Width ="300px"

     

     

    AllowCustomText="false"

     

     

    HighlightTemplatedItems="true"

     

     

     

    EnableLoadOnDemand="true"

     

     

    OnItemsRequested="ddlCustomerName_ItemsRequested"

     

     

    MarkFirstMatch="true"

     

     

    AutoPostback="true">

     

     

    </telerik:RadComboBox>

     


    On Page Load

     

    btnSubmit.Attributes.Add(

    "OnClick", "return fn_Validation('" & TH1.Customer.ClientID "' );")

    In aspx page

    Javascript in the aspx page

     

    function

     

    fn_Validation(Customer)

     

    {

     

    if(document.getElementById(Customer).selectedIndex==0)

     

    {

    alert(

    'Please select a Customer Name to proceed further')

     

    document.getElementById(Customer).focus();

     

    return false;

     

    }
    }
    Registered the user control in the aspx as

     

    <%

    @ Register TagPrefix="uc" TagName="TestHeader" Src="~/UserControl/ParameterSetHeader.ascx" %>

    Kindly help.

Back to Top