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

RadInputManager Client Side

4 Answers 111 Views
Input
This is a migrated thread and some comments may be shown as answers.
Bill O'Neil
Top achievements
Rank 1
Bill O'Neil asked on 15 Dec 2009, 09:24 PM
Is there any way to alter RadInputManager's VALIDATION settings on the client side?

I am able to do so on the server side:

            radIM.GetSettingByBehaviorID("phone").Validation.IsRequired = False

using behavoir ID - where I can toggle the validation on and off.  But I'd like to do it on the client side - and the documentation for radInputManager client-side code seems somewhat liimited.

Thanks,
Bill


4 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 18 Dec 2009, 01:43 PM
Hello Bill,

I am afraid that you observations are right. You can not toggle the IsRequired property of a RadInputManager setting on the client. However, I have forwarded your request to your developers so they can check if this could be done at all.
 
Best wishes,
Iana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Chris Salas
Top achievements
Rank 1
answered on 11 Feb 2010, 08:51 PM
Bill,

Did you ever get this figured out?  Did you try something like below:
$find(RadInputManager).get_inputSettings().RadInputManager_ACHTextBoxBehavior._isRequired = false
0
Tim Harker
Top achievements
Rank 2
answered on 18 Mar 2011, 02:47 PM
Here's what I did...  The first line's similar to the other guys comments, the second line allowed me to change it back and forth on the client.  I noticed if you hard coded it in the HTML, you couldn't change it on the client.  Let me know if you need more details.

$find("<%= RadInputManager1.ClientID %>").get_targetInput("<%= txtCheckNumber.ClientID %>").get_owner().set_isRequired(true);
document.body.onload = function () { setTimeout(function () { $find("<%= RadInputManager1.ClientID %>").get_targetInput("<%= txtCheckNumber.ClientID %>").get_owner().set_isRequired(true); }, 0); };
0
Eric
Top achievements
Rank 1
answered on 20 Oct 2011, 05:20 PM
$find("<%= RadInputManager1.ClientID %>").get_targetInput("<%= txtCheckNumber.ClientID %>").get_owner().set_isRequired(true);

Worked great for me!
Tags
Input
Asked by
Bill O'Neil
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Chris Salas
Top achievements
Rank 1
Tim Harker
Top achievements
Rank 2
Eric
Top achievements
Rank 1
Share this question
or