Bug in RadDatePicker options..

16 posts, 0 answers
  1. Kræn Munck
    Kræn Munck avatar
    15 posts
    Member since:
    Jun 2008

    Posted 14 Mar 2011 Link to this post

    Hi,

    If i create a control like this:

    RadDatePicker date = new RadDatePicker();
                date.EnableTyping = false;
                date.ShowPopupOnFocus = true;

    Disabling typing also disables Popup.. ..but i only want the popup, that's why i disable typing! :D

    So now i have a control that allows no input at all!

    Disabling typing should actually force popup = true

    Also, you should probably not show a caret in the input box when typing is disabled. Very misleading.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 15 Mar 2011 Link to this post

    Hello,


    I tried same code and that got worked for me and the pop-up calendar is showing on clicking the image for the date-picker. I am using RadControls version 2010, 3, 1109, 35. If you want to show calendar popup when clicking the input, then you can make use of the client side api (by calling showPopup method).
    RadDatePicker Client Object



    -Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kræn Munck
    Kræn Munck avatar
    15 posts
    Member since:
    Jun 2008

    Posted 16 Mar 2011 Link to this post

    Hi,

    If you read my code you'd see there's a Property for this exact purpose.
  5. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 18 Mar 2011 Link to this post

    Hi Kræn,

    In your scenario I would suggest you to us the "ReadOnly" property of the controls instead of "EnableTyping". Give this a try and let me know how it goes.


    All the best,
    Maria Ilieva
    the Telerik team
  6. Andrew Putnam
    Andrew Putnam avatar
    7 posts
    Member since:
    Sep 2008

    Posted 06 Jul 2011 Link to this post

    Using the "ReadOnly" property doesn't resolve the issue.  Any other suggestions, or is this a bug?  I'm having the same issue with the v.2011.1.519.40 build.
  7. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 12 Jul 2011 Link to this post

    Hi Andrew,

    Find attached a sample runnable application which shows the correct functionality of both methods for preventing typing in DateInput. Test it on your aide and let me know what the difference in your case is.

    All the best,
    Maria Ilieva
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  8. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 12 Jul 2011 Link to this post

    Hi Andrew,

    Find attached a sample runnable application which shows the correct functionality of both methods for preventing typing in DateInput. Test it on your aide and let me know what the difference in your case is.

    All the best,
    Maria Ilieva
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  9. JR
    JR avatar
    6 posts
    Member since:
    May 2008

    Posted 26 Jul 2011 Link to this post

    I have tried your example and it is still not working! Can you please provide a working example?
  10. JR
    JR avatar
    6 posts
    Member since:
    May 2008

    Posted 28 Jul 2011 Link to this post

    Hi Maria,
    Do you have any solution to the particular problem, or shall I submit a support ticket for it?
  11. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 28 Jul 2011 Link to this post

    Hi Jr,

    Could you please let me know what exactly you mean by "still not working" ? Are you able to type in the input in the provided project. On my side the application works as expected. 
    Please let me know what version of Telerik RadControls are you using?



    Greetings,
    Maria Ilieva
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  12. JR
    JR avatar
    6 posts
    Member since:
    May 2008

    Posted 28 Jul 2011 Link to this post

    Hi Maria,
    I am testing at your demo project that you have provided, so I guess the RadControls are the latest version.
    So about the problem:
    I am not able to type in the input, but the property "ShowPopupOnFocus" should open the calendar when I select the datainput.
    If the property of the RadDatePicker "EnableTyping" is set to true, the other property "ShowPopupOnFocus" is working as expected. In the other case nothing happens. I need to ensure that the users cannot type in the dateInput field but when they click on it the calendar should pop up.


  13. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 03 Aug 2011 Link to this post

    Hello Jr,

    In this case possible approach is to cancel the keypressing in the keydown event of the DateInput component. Please find attached a sample application which presents this functionality. Test it locally and verify if it covers your requirements.

    Greetings,
    Maria Ilieva
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  14. BB
    BB avatar
    2 posts
    Member since:
    Jul 2008

    Posted 11 May 2012 Link to this post

    Did this get solved? I'm having the same issue. My declaration is:

    <telerik:RadDatePicker ID="ec_dtEndDate" runat="server" ShowPopupOnFocus="true" EnableTyping="False" />

    I've also tried 

    <telerik:RadDatePicker ID="ec_dtEndDate" runat="server" ShowPopupOnFocus="true" DateInput-ReadOnly="true" />

    Either way, the date pop-up does not appear when the text box gets focus. Also the zip you supplied with the possible solution seems to be corrupted -can you repost?

    I'm referencing the 2011.3.1305.40 build in my project in Visual Studio.

    Thanks,
    BB
  15. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 14 May 2012 Link to this post

    Hi BB,

    It seems that you have some problem downloading the project attached as on my end it appears to be correct. However here is the full code of the application:

    JS:
    <script type="text/javascript">
            function numericInput(e) {
                e = e || window.event;
                if (e.preventDefault) e.preventDefault();
                e.returnValue = false;
                return false;
            }
      
        </script>
    ASPX:
    <asp:Panel ID="Panel1" runat="server">
        <telerik:RadDatePicker ID="RadDatePicker1" ShowPopupOnFocus="true" runat="server">
            <DateInput runat="server">
            </DateInput>
        </telerik:RadDatePicker>
    </asp:Panel>
    C#:
    protected void Page_Load(object sender, EventArgs e)
        {
           RadDatePicker1.DateInput.Attributes.Add("onkeydown", "numericInput(event);");
        }

    I hope this works for you.

    Regards,
    Maria Ilieva
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  16. BB
    BB avatar
    2 posts
    Member since:
    Jul 2008

    Posted 22 May 2012 Link to this post

    Ok, but this didn't fix the problem. It prevents the user from typing in the text field but as stated here several times by me and others I need the date popup calendar to appear when the user clicks into the text field. Something like ;

    DatePicker1.DateInput.Attributes.Add("onfocus", "showthecalendar(event);")


    Is this possible?

    BB
  17. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 28 May 2012 Link to this post

    Hello BB,

    Find attached the sample application you were previously unable to download.

    I further tested it on my end and it seems to cover all your requirements. Test it on your end and let me know if this works for you.

    All the best,
    Maria Ilieva
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017