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

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

Thread ID:

Created:

Updated:

Platform:

Replies:

119870 Aug 9,2015 07:21 AM UTC Aug 13,2015 12:12 PM UTC ASP.NET Web Forms 3
loading
Tags: TimePicker
Mohammad Helal
Asked On August 9, 2015 07:21 AM UTC

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

Saranya Sivakumar [Syncfusion]
Replied On 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


Mohammad Helal
Replied On 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

Saranya Sivakumar [Syncfusion]
Replied On 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


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.

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

;