3 Answers, 1 is accepted
0
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
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
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
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
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.