Hi Haizhi,
Thanks for contacting Syncfusion support.
Query: whenever I click that custom button, it always trigger the whole web page reloaded.
We have analyzed your query and we suspect that you might have missed to provide Type property to the button. Since the button inside dialog will be rendered inside a form element, clicking on it might trigger a submit action(reason for a page refresh). So we suggest you to set Type as ‘button’ in the EjsButton component as shown in the below code snippet,
|
<EjsButton Type="button" @onclick="onclick">Open Dialog</EjsButton>
|
Please get back to us if you need further assistance.
Regards,
Logesh R