DialogButton's Type property dosen't work

Hi team,

I set the DialogButton's Type property to "submit", but it dosen't rendered into the button tag. Is it a bug or I missed some steps?

Please apply a hint to me, Thanks.

A sample project and screenshot are attached for reference.


Attachment: DialogButtonIssue_fcee6d42.rar

5 Replies

IS Indrajith Srinivasan Syncfusion Team June 17, 2020 01:45 PM UTC

Hi Brian,

Greetings from Syncfusion support,
 
 
We have validated your reported query. By default in SfDialog, the buttons will perform submit action. We have also prepared a sample that tries to meet your requirements, using the EditForm in dialog for performing the submit action. 
 
 
Please let us know if the solution helps, 
 
Regards, 
Indrajith 



BR Brian June 18, 2020 09:14 AM UTC

Right, but if you add DataAnnotationsValidator and ValidationMessage to the from, and intentionally make some validating error, and directly click the DialogButton, you will find the ValidationMessage  never appear. That's should be improved for fine user experience.


IS Indrajith Srinivasan Syncfusion Team June 19, 2020 12:21 PM UTC

Hi Brian, 
 
Thanks for the update,

We have addressed a similar thread with SfDialog performing the form validations. Can you please check the below suggestions, and let us know if you face any difficulties
 
  
 
Regards, 
Indrajith 



BR Brian June 20, 2020 10:56 AM UTC

Yes, that helped, Thanks.


IS Indrajith Srinivasan Syncfusion Team June 21, 2020 08:01 AM UTC

Hi Brian,

Welcome, Please let us know if you need any further assistance.

Regards, 
Indrajith 


Loader.
Up arrow icon