This is a migrated thread and some comments may be shown as answers.

[Solved] Disable OnOpen if the textbox is focused

3 Answers 61 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
JULIA
Top achievements
Rank 1
JULIA asked on 10 Sep 2010, 02:10 PM
Hello,

how can i disable OnOpen if the textbox is focused. the calender should only open if the user clicks on the icon.

Regards,
Timo

3 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 10 Sep 2010, 03:04 PM
Hello Timo,

Unfortunately we do not support this feature out of the box. Anyway you can accomplish this task by wiring OnLoad client event and call this code snippet:
function onLoad(e) {
    var datepicker = $(this).data('tDatePicker');
    datepicker.$input.unbind('focus');
    $(this).find('> .t-icon')
           .unbind('click')
           .bind('click', function () {
               if (datepicker.isOpened()) {
                   datepicker.parseDate(datepicker.$input.val());
                   datepicker.hide();
               } else {
                   datepicker.show();
               }
           });
}

Kind regards,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
JULIA
Top achievements
Rank 1
answered on 14 Sep 2010, 08:59 PM
Hello,

will this feature supported in Q3 2010?
0
Georgi Krustev
Telerik team
answered on 15 Sep 2010, 09:17 AM
Hello Timo,

Currently, we do not have plans to support this feature in future. I will suggest you vote for it in our PITS system. Depending on customers interest and desire, we will decide whether to implement this feature or not.

Sincerely yours,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Date/Time Pickers
Asked by
JULIA
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
JULIA
Top achievements
Rank 1
Share this question
or