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.
Unfortunately, activation email could not send to your email. Please try again.

hidde/show a control with radio buttons

Thread ID:

Created:

Updated:

Platform:

Replies:

120652 Sep 30,2015 02:35 PM Oct 2,2015 12:26 AM ASP.NET Web Forms 4
loading
Tags: DropDownList
Manolo
Asked On September 30, 2015 02:35 PM

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

Manolo
Replied On September 30, 2015 02:36 PM

Ups... I forget the attach file

Attachment: SampleButton_7636e535.zip

Kasithangam C [Syncfusion]
Replied On October 1, 2015 05:43 AM

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


Manolo
Replied On October 1, 2015 06:38 AM

ok, thank you

Saranya Sivakumar [Syncfusion]
Replied On October 2, 2015 12:26 AM

Hi Manolo,

Thanks for your update.

Please let us know you have any other queries.

Regards,

Saranya.S


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;