4 Answers, 1 is accepted
0
Hello Eirik,
Thank you for your interest.
You can track when the OK button is pressed through the RadDatePicker.ValueChanged event.
I hope this helps. Let me know if you need further assistance.
Ivaylo Gergov
Telerik
Thank you for your interest.
You can track when the OK button is pressed through the RadDatePicker.ValueChanged event.
I hope this helps. Let me know if you need further assistance.
Regards,
Ivaylo Gergov
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Eirik
Top achievements
Rank 1
answered on 12 Jul 2013, 01:14 PM
Hello!
I have troubled With that the valuechanged event is fired when the window is opened and the bindings occour.
Should i registrer the event at other Place than design, or is it at better solution somewhere?
Regards,
Eirik
0
Eirik
Top achievements
Rank 1
answered on 12 Jul 2013, 01:14 PM
Hello!
I have troubled With that the valuechanged event is fired when the window is opened and the bindings occour.
Should i registrer the event at other Place than design, or is it at better solution somewhere?
Regards,
Eirik
0
Hello Eirik,
The observed behavior is normal and by design (ValueChanged event is correctly raised on initial binding as well). Generally there is no easy way for you to distinguish the source of the ValueChanged event (i.e. what triggered it) so if you really need to distinguish the OK button click action, you will need to retemplate the datepicker control and directly hook the Button.Click event of the OkButton template part.
See the attached sample application that demonstrates this approach. Hope this helps.
Regards,
Giuseppe
Telerik
The observed behavior is normal and by design (ValueChanged event is correctly raised on initial binding as well). Generally there is no easy way for you to distinguish the source of the ValueChanged event (i.e. what triggered it) so if you really need to distinguish the OK button click action, you will need to retemplate the datepicker control and directly hook the Button.Click event of the OkButton template part.
See the attached sample application that demonstrates this approach. Hope this helps.
Regards,
Giuseppe
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.