show/hide controls on advanced edit form

4 posts, 0 answers
  1. Alex
    Alex avatar
    17 posts
    Member since:
    Sep 2005

    Posted 23 May 2011 Link to this post

    hello all,
    I have a customized advanced edit form that displays a number of resources in drop down lists. I need to enable/disable these drop down lists based on user selections. Ive attempted to do this with jQuery but for whatever reason, when the change event is fired, it does not disable the drop downs.
    here is the code:

    <script type="text/javascript">
        (function ($) {
            $(function () {
                $("[id$='_ResActivity_ResourceValue_Input']").bind('change', function () {
                    if ($("[id$='_ResActivity_ResourceValue_Input']").val() !== 'ILT - Instructor Led Training') {
                        //alert('not equal');
                        $("[id$='_ResCourse_ResourceValue_Input']").attr('disabled', 'disabled');
                        $("[id$='_ResLocation_ResourceValue_Input']").attr('disabled', 'disabled');
                    } else {

    I know that the event is firing because when I uncomment the alert() functions, I get the alert.
     Any thoughts/recommendations are appreciated.

  2. Plamen
    Plamen avatar
    3078 posts

    Posted 26 May 2011 Link to this post

    Hi Alex,

    Could you please send us your advanced form template so we can test it.

    Plamen Zdravkov
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. Bhupinder
    Bhupinder avatar
    1 posts
    Member since:
    Jan 2012

    Posted 04 Jan 2012 Link to this post


    Is there a solution to this? I am also facing the same issue. I want to show/hide the controls on Advanced Form via JavaScript with help of dropdown

  4. Plamen
    Plamen avatar
    3078 posts

    Posted 04 Jan 2012 Link to this post

    Hi Bhupinder,

    Have you considered the following help topic where it's described how to achieve similar functionality with javascript or jquery.

    Hope this will be helpful.

    Kind regards,e
    Plamen Zdravkov
    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