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

more buttons in the date time textbox

1 Answer 82 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
tomas
Top achievements
Rank 1
tomas asked on 30 Sep 2013, 12:38 PM
Dear support employee,

I need to add buttons in the text line next to the drop down box. (To not destroy the validation error box),

1) clear button
2) current date button
3) another icon for the current drop down glyph.

Can you help me please?

I would like to create your control descendant to not destroy your templates and themes.

thank you.

Tomas

1 Answer, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 03 Oct 2013, 02:18 PM
Hi Tomas,

What I can suggest you is to create a custom UserControl, place inside it the DateTimePicker and the required buttons and use the UserControl after that instead of the DateTimePicker. This is the solution for the moment as the Click event is handled in the DateTimePicker and if you add the buttons in the ControlTemplate they won't work as expected in Silverlight application. Please check the attached sample project which demonstrates the approach.

Hope this will help you.

Regards,
Kalin
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
DateTimePicker
Asked by
tomas
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Share this question
or