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

RadInputManager on Rotator

1 Answer 44 Views
Input
This is a migrated thread and some comments may be shown as answers.
Ricky
Top achievements
Rank 1
Ricky asked on 29 Jun 2012, 03:57 AM
Hi,

Currently if we want to have a validator on the textbox on the rotator or repeater, based on this link:
http://www.telerik.com/help/aspnet-ajax/input-inputmanager-basics.html 

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.

1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 03 Jul 2012, 01:43 PM
Hello Ricky,

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

Regards,
Vasil
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.
Tags
Input
Asked by
Ricky
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Share this question
or