Required do not works

hi, I would like to submit a problem: in practice in the model I have defined a denomination field in the following way:

  [NotNull]

         [Required(AllowEmptyStrings=false, ErrorMessage = "Please enter designation")]

         [Column("denomination")]

         [Display(Name = "Name")]

         [StringLength(60, ErrorMessage = "Name: up to 60 characters.")]

         public string Designation { get; set; }


It happens to me that in execution when I type the tab and therefore without putting anything, it passes me to the next field without activating the required, while the second time I pass on the field or put a space character with a slash it is activated. why this behavior?


1 Reply

LD LeoLavanya Dhanaraj Syncfusion Team May 15, 2023 04:54 PM UTC

Hi Biagio,


Greetings from Syncfusion support.


Based on the details you shared, we were unclear about your specific requirements for the Blazor Dashboard Layout component. It should be noted that the Dashboard Layout component does not include validations. Therefore, we require additional details to proceed with validation. Could you please let us know which Syncfusion component you are currently using and provide us with specific details regarding your requirements? Additionally, please share any samples that you have tried on your end. This will enable us to better understand your needs and provide a prompt solution.


Moreover, our Blazor Dashboard is a grid-structured layout component that facilitates the creation of both static and dynamic dashboard layouts with panels. Dashboard panels serve as the fundamental building blocks of a dashboard and can be added either programmatically or dynamically at runtime. These panels enable UI component resizing, reordering, dragging and dropping, removal, and addition. It is easy to position components exactly where needed within the grid layout.


For more information on the Syncfusion Dashboard Layout component, please refer to the following links.


Feature tour :  https://www.syncfusion.com/blazor-components/blazor-dashboard


Documentation : https://blazor.syncfusion.com/documentation/dashboard-layout/getting-started


Demo : https://blazor.syncfusion.com/demos/dashboard-layout/default?theme=fluent


API reference : https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Layouts.SfDashboardLayout.html#properties


I hope this information is helpful and resolves any concerns you may have. Please let us know, if you have any further questions or need additional assistance.


Regards,

Leo Lavanya Dhanaraj


Loader.
Up arrow icon