-
Notifications
You must be signed in to change notification settings - Fork 30
968712 Prepared the UG for SfDataGrid data annotation support. #3739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Build Status: INPROGRESS 🔃 |
|
CI Status: SUCCESS ✅ |
|
Build Status: INPROGRESS 🔃 |
|
CI Status: SUCCESS ✅ |
MAUI/DataGrid/columns.md
Outdated
| {% tabs %} | ||
| {% highlight c# %} | ||
| [Editable(true)] | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why space left between property and property name
MAUI/DataGrid/columns.md
Outdated
|
|
||
| #### Format datagrid columns using DisplayFormat attribute | ||
|
|
||
| The auto-generated columns will be formatted using the [DataFormatString](https://learn.microsoft.com/en-us/previous-versions/windows/silverlight/dotnet-windows-silverlight/cc679306%28v%3dvs.95%29) property in the [DisplayFormat](https://learn.microsoft.com/en-us/previous-versions/windows/silverlight/dotnet-windows-silverlight/cc679253%28v%3dvs.95%29) attribute when the `DisplayFormat` attribute is defined for the properties defined in the model. If the `DisplayFormat` attribute is defined with the `DataFormatString` property, the DataGrid formats the column only based on `DataFormatString`, without considering other formatting property settings of columns. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the DisplayFormat attribute is defined for properties in the model, the auto-generated columns in the DataGrid created via DataAnnotations will be formatted using the DataFormatString specified in that attribute.
|
Build Status: INPROGRESS 🔃 |
|
CI Status: SUCCESS ✅ |
Prepared the UG for SfDataGrid data annotation support.
Feature description
Provided Data annotation attribute support for DataGrid auto generate columns.
Tasks:
https://dev.azure.com/EssentialStudio/Mobile%20and%20Desktop/_workitems/edit/968708
https://dev.azure.com/EssentialStudio/Mobile%20and%20Desktop/_workitems/edit/968709
https://dev.azure.com/EssentialStudio/Mobile%20and%20Desktop/_workitems/edit/968710
https://dev.azure.com/EssentialStudio/Mobile%20and%20Desktop/_workitems/edit/981111
UG documentation 968712
Purpose/benefits of the feature
The Data Annotation feature will be integrated within the existing column auto-generation mechanism of the SfDataGrid. The implementation will involve enhancing the row generator component to process Data Annotation attributes during column creation without disrupting the existing functionality.
Use cases: