You could remove the button's default binding code:
and bind the button's Command property to your custom command (or use an event handler) showing your custom dialog and performing the above mentioned logic.
Don't hesitate to contact us if you have other questions.
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>