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

radTimePicker API documentation error

1 Answer 33 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Roger
Top achievements
Rank 1
Roger asked on 27 Mar 2008, 11:23 PM
Hi,
in the documentation under r.a.d. calendar V2.2 help -> Time Picker -> Client - Side API, there is a section there with a code sample:

Getting/Setting the time client-side


RadTimeView exposes a rich client-side API that allows you to control its behavior. You can manipulate the time selection by using the GetDate() / SetDate() methods:

JavaScript Copy Code
var radTimePicker = <%= RadTimePicker1.ClientID %>;
var timeView = radTimePicker.GetTimeView();
var time = timeView.GetDate();

the last line is incorrect and should read :
var time = timeView.GetTime();

as the RadTimePicker does not have a GetDate() function and if you copy the code as presented her it will not work.

Regards
Roger

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 28 Mar 2008, 09:38 AM
Hello Roger,

The discrepancy that you mentioned has already been corrected. Thank you for letting us know.

Greetings,
Yavor
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Calendar
Asked by
Roger
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or