We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

hidde/show a control with radio buttons

Hi,

I've a problem hidden/showing controls with javascript.

In this example I want show or hidde the dropdownlist if radio button is checked, but I can't do it.

For other hand, where is the documentation of controls' functions in script section?

Thanks

4 Replies

MA Manolo September 30, 2015 06:36 PM UTC

Ups... I forget the attach file

Attachment: SampleButton_7636e535.zip


KC Kasithangam C Syncfusion Team October 1, 2015 09:43 AM UTC

Hi Manolo,

On analyzing your code, you have used setVisible(false) for hide dropdownlist. This method is not available in our dropdownlist. Instead of using this, you can use the JQuery hide and show method to show/hide our dropdownlist while check the radiobuttons. Please find the code for same:

<code>

<script>

        function onRadSemanalChange(args) {

            if (args.isChecked)

                $('#<%=ddlTest.ClientID%>_wrapper').hide();

        }


        function onRadDiarioChange(args) {


            if (args.isChecked)

                $('#<%=ddlTest.ClientID%>_wrapper').show();

        }

    </script>

<code>

Also, we have modified your sample based on this and please refer to the following sample:

Sample: Sample

Where is the documentation of controls' functions in script section?
We have a documentation link to know about our controls properties, methods and events information.Please go through the following API link,


http://help.syncfusion.com/js/api/ejdropdownlist


Please let us know if you have further query.

Regards,

Kasithangam



MA Manolo October 1, 2015 10:38 AM UTC

ok, thank you


SS Saranya Sivakumar Syncfusion Team October 2, 2015 04:26 AM UTC

Hi Manolo,

Thanks for your update.

Please let us know you have any other queries.

Regards,

Saranya.S


Loader.
Live Chat Icon For mobile
Up arrow icon