Textbox of RadDateTimePicker control.

4 posts, 0 answers
  1. IMF
    IMF avatar
    12 posts
    Member since:
    Jun 2012

    Posted 08 Apr 2014 Link to this post

    Hello 

    I would remove the textbox  of RadDateTimePicker control. 

    Anyone know how I can do? 

    thanks
  2. Kalin
    Admin
    Kalin avatar
    1209 posts

    Posted 09 Apr 2014 Link to this post

    Hi,

    Could you please share some more details on the exact scenario you need to achieve, so we can provide you with the proper solution. If you just need to use the Calendar from the DateTimePicker you can try our Calendar control - you can check the online demos and the help documentation of the control.

    I'm looking forward to hearing from you.

    Regards,
    Kalin
    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. DevCraft banner
  4. IMF
    IMF avatar
    12 posts
    Member since:
    Jun 2012

    Posted 09 Apr 2014 in reply to Kalin Link to this post

    Hello, 

    The DataTimePicker control is composed of a button (Calendar) and a Textbox. 

    I need to take just the button, remove the Textbox. I managed to hide it but keeps the width of the column,this is the problem. 

    thanks
  5. Kalin
    Admin
    Kalin avatar
    1209 posts

    Posted 11 Apr 2014 Link to this post

    Hello,

    Thanks for the further details.

    You will be able to achieve the desired by modifying the default ControlTemplate of the DateTimePicker in order to remove the VisualStateGroup named CommonStates and the borders named BackgroundVisual, MouseOverVisual, FocusVisual as well as the WatermarkTextBox named PART_DateTimeInput. This way will have just have the drop down button as required. For your convenience I have prepared a sample project which demonstrates the exact approach, note that I have used Implicit Styles in order to easily extract and modify the ControlTemplate.

    Hope this will work for you.

    Regards,
    Kalin
    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