We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to set ButtonAdv as Default button in a dialog?

i have two ButtonAdv in my window and want to set one of them as Default and the other as CancelButton. how can i do this?

1 Reply

KJ Keerthana Jegannathan Syncfusion Team January 25, 2017 08:59 AM UTC

Hi Amir, 
Thank you for contacting Syncfusion support. 
In our ButtonAdv control, at present we don’t have default support to achieve it as Cancel button and Default button. We have prepared a workaround sample in which we have invoked the Click event of specific button on the “PreviewKeyDown” event of window. Also, we have inherited the style of ButtonAdv in “App.xaml” and applied Border color for the Button to get selected at the time of loading. Please refer the below sample 
Keerthana J 

Live Chat Icon For mobile
Up arrow icon