DatePicker NOT selecting with automation

5 posts, 1 answers
  1. Sam
    Sam avatar
    10 posts
    Member since:
    Feb 2014

    Posted 29 Apr 2014 Link to this post

    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)


  2. Answer
    Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 02 May 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sam
    Sam avatar
    10 posts
    Member since:
    Feb 2014

    Posted 29 May 2014 in reply to Maria Ilieva Link to this post

    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.
  5. Sam
    Sam avatar
    10 posts
    Member since:
    Feb 2014

    Posted 29 May 2014 in reply to Maria Ilieva Link to this post

    My apologies...I am VERY new to Telerik.
  6. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 03 Jun 2014 Link to this post

    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.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017