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

DatePicker NOT selecting with automation

5 Answers 142 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Sam
Top achievements
Rank 1
Sam asked on 29 Apr 2014, 04:13 PM

Requirements

Telerik Product and Version

2014.1.410.0

Supported Browsers and Platforms

Windows 7 - Internet Explorer 11, Chrome Version 34.0.1847.131 m, Firefox v28.0

Components/Widgets used (JS frameworks, etc.)

PHP, Javascript, JQuery, HTML, CSS

PROJECT DESCRIPTION 
Problem: Setting up automation for clicking calendar drop down datepicker the tools supplied cannot click the date picker selection.

What about setting up a automated input for the date picker, by which selecting? I have the following value I am trying to input a value automatically...the Mouse Left Click does not work. OnClick doesn't seems to work with Java selection as well...

I am new to this Telerik. How would I go about making this automated (selecting any date and that date populating)?


Here are the screen shots of the Date picker I have...
http://content.screencast.com/users/Sam.Dawson/folders/Jing/media/3a5acdf1-eb31-47cf-bb5f-ef8497f49c5a/2014-04-25_1141_001.png


Here is the HTML I am trying to change the (RED arrows) value with individual Names (Green arrows)
http://content.screencast.com/users/Sam.Dawson/folders/Jing/media/e6f4c5cf-d6c8-4751-bd72-6eb89d25ead1/2014-04-25_1140.png

 

 Note: I have also asked this on the datepicker forum prior but need a response to get past this roadblock asap (http://www.telerik.com/forums/datepicker-calendar-popup#bRJpiHAOnka99DPfKX0mlQ)


5 Answers, 1 is accepted

Sort by
0
Accepted
Maria Ilieva
Telerik team
answered on 02 May 2014, 11:05 AM
Hi,

You can populate RadDatePicker with date automatically using SelectedDate property of the control.
Copy Code
<telerik:RadDatePicker ID="RadDatePicker1" SelectedDate="2/3/2013" runat="server" ></telerik:RadDatePicker>

You can also set selected date client side:
Copy Code
<script type="text/javascript">
    function incrementDate(picker) {
        var date = picker.get_selectedDate();
        date.setDate(date.getDate() + 1);
        picker.set_selectedDate(date);
    }
</script>

And server side:
Copy Code
protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         RadDatePicker1.SelectedDate = new DateTime(2013, 3, 2);
     }
 }

I hope this helps.

Regards,
Maria Ilieva
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Sam
Top achievements
Rank 1
answered on 29 May 2014, 02:20 PM
Maria,

Thank you, I am not really a programmer. I found that the DOM was calling from an ID which changes when you change the date, delete it, or create it...

So I went in and called the element <name> 'Date_picker_c' rather than the <ID> since it changes every input given.
0
Sam
Top achievements
Rank 1
answered on 29 May 2014, 02:21 PM
My apologies...I am VERY new to Telerik.
0
Maria Ilieva
Telerik team
answered on 03 Jun 2014, 08:38 AM
Hi Sam,

This is to let you know that we are ready to help in any case you need assistance with our controls. Therefore do not hesitate to contact us back and require help form our support center either vie forum post or a support ticket.

Regards,
Maria Ilieva
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Karthika
Top achievements
Rank 1
answered on 10 Aug 2018, 02:23 PM

I'm trying to automate

< kendo-datepicker name ='' class=''>

<Kendo-dateinput>

<input name ='' class='' aria-valuetext='10 Aug 2018'>

<\Kendo-dateinput>

<span>

<\kendo-datepicker>

 

 

Tags
Calendar
Asked by
Sam
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Sam
Top achievements
Rank 1
Karthika
Top achievements
Rank 1
Share this question
or