This is a migrated thread and some comments may be shown as answers.

Textbox of RadDateTimePicker control.

3 Answers 13 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
IMF
Top achievements
Rank 1
IMF asked on 08 Apr 2014, 02:36 PM
Hello 

I would remove the textbox  of RadDateTimePicker control. 

Anyone know how I can do? 

thanks

3 Answers, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 09 Apr 2014, 07:00 AM
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.

 
0
IMF
Top achievements
Rank 1
answered on 09 Apr 2014, 09:59 AM
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
0
Kalin
Telerik team
answered on 11 Apr 2014, 11:26 AM
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.

 
Tags
DateTimePicker
Asked by
IMF
Top achievements
Rank 1
Answers by
Kalin
Telerik team
IMF
Top achievements
Rank 1
Share this question
or