How to add target controls to RadInputManager programatically?

jgill

I wanted to know if there is a way I can add validation elements/settings to the RadInputManager dynamically for a situation where all validation criteria is stored in a database.

For example: Imagine you have a form that is dynamically generated from database data and the number of input fields to validate and their names are not fixed/known ahead of time. Fields are dynamically loaded from the database and they are named vaules like txtControl12.

'Create an instance of the RadInputManager

Dim controlvalidation AsNew RadInputManager

controlvalidation.ID = "RadInputManager1"

'Add various settings and specific controls to validate within those settings

'E.g. There is one field in the form that should be an e-mail address, 1 field that

'has a validation date range, another field that has a different validation date

'range.

In the example above there are 2 different date validations for two date input fields and 1 e-mail address. I am looking for a way to programatically create the VB.NET/C# equal to the following, but am having trouble figuring out how to add something like a new DateInputSetting for RadInputManager 1 that applies to control X and a RegExpTextBoxSetting that applies to a different set of controls (it could apply to one or more).

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.