How to Use RadDateTimePicker Without a Textbox And Popup Buttons

Thread is closed for posting
1 posts, 1 answers
  1. Answer
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD avatar
    1572 posts
    Member since:
    Oct 2004

    Posted 26 Nov 2008 Link to this post


    RadControls for ASP .NET AJAX version

    2008.1.415 and later
    .NET version

    2.0 and later
    Visual Studio version

    2005 and later
    Programming language Javascript
    Browser support

    all browsers supported by RadControls for ASP .NET AJAX


    The following example shows how to make some or all of the RadDateTimePicker control elements invisible (textbox, popup buttons). Using the simple display:none style for the DateInput textbox is not possible, because the Calendar and TimeView popups calculate their position according to the position of this textbox. One cannot use only visibility:hidden either, because in this case the RadDateTimePicker will continue occupying space on the web page.

    A couple of simple custom CSS rules are required to achieve the goal.
Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.