RadInputManager Client Side

5 posts, 0 answers
  1. Bill O'Neil
    Bill O'Neil avatar
    111 posts
    Member since:
    Nov 2004

    Posted 15 Dec 2009 Link to this post

    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


  2. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 18 Dec 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Chris Salas
    Chris Salas avatar
    46 posts
    Member since:
    Oct 2009

    Posted 11 Feb 2010 Link to this post

    Bill,

    Did you ever get this figured out?  Did you try something like below:
    $find(RadInputManager).get_inputSettings().RadInputManager_ACHTextBoxBehavior._isRequired = false
  5. Tim Harker
    Tim Harker avatar
    12 posts
    Member since:
    Jul 2009

    Posted 18 Mar 2011 Link to this post

    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); };
  6. Eric
    Eric avatar
    1 posts
    Member since:
    Oct 2011

    Posted 20 Oct 2011 Link to this post

    $find("<%= RadInputManager1.ClientID %>").get_targetInput("<%= txtCheckNumber.ClientID %>").get_owner().set_isRequired(true);

    Worked great for me!
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017