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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Hide datepicker in javascript code

Thread ID:





124290 May 30,2016 11:40 AM UTC May 31,2016 02:13 PM UTC ASP.NET Web Forms 1
Tags: DatePicker
Asked On May 30, 2016 11:40 AM UTC


I want hide/show a datepicker control in function dropdownlist value

<ej:DropDownList runat="server" ID="ddlTemporalidad" Value="2" ClientSideOnChange="onTemporalidadChange">

<ej:DatePicker runat="server" ID="dateDiario"></ej:DatePicker>

        function onTemporalidadChange(args)
                case "1":
                    var obj = $("#<%=dateDiario.ClientID%>").data("ejDatePicker");
                case "2":
                    var obj = $("#<%=dateDiario.ClientID%>").data("ejDatePicker");

But it doesn't work

Francis Paul Antony Raj [Syncfusion]
Replied On May 31, 2016 02:13 PM UTC

Hi Manolo, 
Thanks for contacting Syncfusion support. 
We have checked with your code snippet and tried with your code example. ClientSideOnChange event triggers properly when select the items in the dropdownlist and correspondingly datepicker show(), hide() method works. For your convenience, we have attached the sample in the below location. 
If still you face any difficulties, please check, 
#1) whether any script error thrown in console window. 
#2) whether ClientSideOnChange event triggers properly. 
#3) if triggers, check with the argument value (args.value), whether it is a string or integer type and changed the code accordingly. 
Please revert back the sample to reproduce the issue at our end, if still problem persists. 
Francis Paul A 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon