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

RadTimePicker - High lighting and focusing upon TimeView Popup times

2 Answers 89 Views
Input
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Anthony asked on 20 Aug 2008, 01:52 PM

Hi,

We are using RadTimePickers version Version 2008.1.415.35

The problem I’ve noticed is that when entering a time in the text box the associated TimeView popup does not high light or focus upon the entered time.

Strangely, if you select a time via the popup the time is highlight but is not focused upon when re-entering the TimeView popup. 

I've tried a number of methods to allow this:

Server side:

public void _timePicker_SelectedDateChanged(object sender, SelectedDateChangedEventArgs e)
{
    if (_timePicker.SelectedDate.HasValue)
    {
        _timePicker.FocusedDate = _timePicker.SelectedDate.Value;
    }
}

client side:

function OnTimePickerTimeViewOpen(sender, args)

{

var timePicker = sender;

var timeView = timePicker.get_timeView();

var timeToSelect = timePicker.get_selectedDate();

if (timeToSelect != null)

{

timePicker.set_focusedDate(timePicker.get_selectedDate());

timePicker.set_selectedDate(timePicker.get_selectedDate());

timePicker._focusedDate = timePicker.get_selectedDate();

timeView.setTime(timeToSelect.getHours(), timeToSelect.getMinutes(), timeToSelect.getSeconds());

}

}

But none if these methods seem to work

Any help with this issue would be gratefully received

2 Answers, 1 is accepted

Sort by
0
Missing User
answered on 22 Aug 2008, 02:42 PM
Hi Anthony,

Unfortunately, at this moment the desired behavior cannot be achieved.

I logged your request in our ToDo list and we will take it for consideration, for one of the future updates of the control.



Sincerely yours,
Plamen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Anatoliy
Top achievements
Rank 2
answered on 29 Mar 2017, 08:46 AM

Hi Plamen,

I'm stuck with the same problem with version 2015.2.623.

Can you update the progress state of fixing this highlighting popup problem? 

For details I'm trying to use it for seconds presets and here my code:

01.<telerik:RadTimePicker ID="OffsetPicker" runat="server">
02. <TimeView runat="server"
03.        Interval="0:00:05"
04.        StartTime="0:00:05"
05.        EndTime="0:01:05"
06.        Columns="6"
07.        ShowFooter="true"
08.        ShowHeader="false"
09.        TimeFormat="mm:ss" />
10.  <DateInput runat="server" DateFormat="mm:ss" DisplayDateFormat="mm:ss" />
11.</telerik:RadTimePicker>

Can you advise me one of the ways to handle this issue?

 

With best wishes,

Anatoliy

Tags
Input
Asked by
Anthony
Top achievements
Rank 1
Answers by
Missing User
Anatoliy
Top achievements
Rank 2
Share this question
or