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

Need to add an empty value to the time picker drop down list

How can I add an empty value to the time picker ddl, which I used this control inside column template in a ejGrid.

3 Replies

SS Saranya Sivakumar Syncfusion Team August 10, 2015 06:13 PM UTC

Hi Mohammad,

Thanks for using Syncfusion products.

We have analyzed your reported query and would like to let you know that we can empty the value in Timepicker input textbox as like below code snippet.

<code>

function tmplrefresh(e) {


            // render timepicker

            $(e.cell).find('.template').ejTimePicker({

                width: "100%",

                create: "onCreate"

            });

        }

function onCreate(e) {

            $(this.element).val("");

        }

</code>

We have prepared the sample based on your requirement and the sample can be downloaded from the below location.

http://www.syncfusion.com/downloads/support/forum/119870/ze/Sample993123470

Kindly check with the above sample. If still you face the problem kindly share us more details regarding adding empty value in DDL. Also please share us your use case scenario which will be helpful for us to serve you better.

Please let us know if you have any other queries.

Regards,

Saranya.S



MH Mohammad Helal August 12, 2015 07:04 AM UTC

Hi Saranya Sivakumar,

I tried the solution you gave to me, but I need to do as I can choose a value from the Time Picker DDL I can also to cancel it.

Can you help me with that?

Regards,
Mohammad


SS Saranya Sivakumar Syncfusion Team August 13, 2015 12:12 PM UTC

Hi Mohammad,

We have analysed the reported query and prepared sample based on your requirement and the sample can be downloaded from the following location.

http://www.syncfusion.com/downloads/support/directtrac/134199/timepickerSample-1608804844.zip

In the above sample we have added the “li” element and emptied its value in the open event of our TimePicker control.

Kindly check with the above sample and let us know if you have any other queries.

Regards,

Saranya.S


Loader.
Up arrow icon