RadInputManager on Rotator

2 posts, 0 answers
  1. Ricky
    Ricky avatar
    10 posts
    Member since:
    Apr 2012

    Posted 28 Jun 2012 Link to this post


    Currently if we want to have a validator on the textbox on the rotator or repeater, based on this link:

    how if we have two validator in the repeater e.g one is email textbox and one is decimal textbox,

    currently i bind the radInput Manager on the code behind , 
    i do find control of the textbox and add those textboxes on the rad input manager,
    TextBox txtOrderNumber = (TextBox)rptC.Items[j].FindControl("txtOrderNumber");
                    RegExpTextBoxSetting RegExpBehavior1 = (RegExpTextBoxSetting)RadInputManager1.GetSettingByBehaviorID("RegExpBehavior1");
                    RegExpBehavior1.TargetControls.Add(new TargetInput(txtOrderNumber.UniqueID, true));

    but it is only success add for the first textbox, the other textbox doesn't have validation.
  2. Vasil
    Vasil avatar
    1642 posts

    Posted 03 Jul 2012 Link to this post

    Hello Ricky,

    Could you confirm that you add both textboxes to the corresponding TargetControls collections? I see only code for the first one.

    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top