Unplanned
Last Updated: 18 Oct 2024 13:00 by Lim
Lim
Created on: 18 Oct 2024 13:00
Type: Bug Report
0
WPF Telerik DateTimePicker // Converting step 'datetimepickerclock: select time' to code cannot be compiled.

Steps to reproduce

  1. Record the steps to select time from a radDateTimePicker component. 
  2. The recorded step is 'datetimepickerclock: select time ''.'
  3. Convert it to code.

Expected: The  code is compiled and executed as expected.

Actual: The converted code produces compilation error: 

 

[ Compiler ]
15:57:58 'ERROR' > C:\TestProject1\WPFTest.tstest.cs(55,104) : error CS1061: 'FrameworkElement' does not contain a definition for 'SelectTime' and no accessible extension method 'SelectTime' accepting a first argument of type 'FrameworkElement' could be found (are you missing a using directive or an assembly reference?)
15:57:58 'INFO' > Build Failed

Workaround: Cast the element like this: 

Applications.WPF_Demosexe.Telerik_UI_for_WPF_Desktop_Examples.PARTClockDatetimepickerclock.CastAs<Telerik.WebAii.Controls.Xaml.Wpf.DateTimePickerClock>().SelectTime("1:00 PM");

 

0 comments