RadDatePicker without DateInput

2 posts, 0 answers
  1. Tony
    Tony avatar
    22 posts
    Member since:
    Jun 2005

    Posted 26 Nov 2008 Link to this post

    Hi,

    I have a fussy client who loves the Calendar part of the RadDatePicker but wants drop down lists instead of the "textbox" part (the DateInput).

    I have this all working except when I turn off the DateInput part using :

    rdpWeddingDate.DateInput.Visible = False

    I get a JavaScript error from the rest of the control: ...  Sys.InvalidOperationException: Component 'ctl00_cp1_rdpWeddingDate_dateInput' was not found.

    This problem is easily re-producible, just toggling the .Visible property fix/causes the problem.

    Does anyone know a work around for this, some other part that needs disabling, perhaps ?

    Thanks for your help.
  2. Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 26 Nov 2008 Link to this post

    Hi Tony,

    Please consult the following fresh code library example (published today :-) ) in order to see how to hide the DateInput:

    http://www.telerik.com/community/code-library/aspnet-ajax/calendar/how-to-use-raddatetimepicker-without-a-textbox-and-popup-buttons.aspx


    Kind regards,
    Dimo
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top