The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
SSSaiGanesh Sakthivel Syncfusion Team April 7, 2023 05:56 AM UTC
Hi
Andreas,
#Regarding
ReadOnly property of the dataform editors
we
have documented ‘How to set the readonly property for dataform editor in MAUI
DataForm’ in our user guidance document. Please refer to the following UG
documentation for your reference.
yes but i want to have a way to completely remove them from the dataform.
or in a more general way, a way to specify that only some properties are visible in the dataform.
since the DataObject comes from a libary i can not / want not to add Attributes to the class.
so maybe a way like if i use the OnGenerateDataFormItem event to hide/remove selected properties from the DataForm
SSSaiGanesh Sakthivel Syncfusion Team April 10, 2023 06:50 AM UTC
Andreas,
Your
requirement can be achieved with the help of the GenerateDataFormItem event.
Inside the event, we can check if the property of the model property is
CanWrite or not and change the corresponding dataform editor's IsReadOnly or
IsVisible property. Please refer to the code snippet for your reference.