Conditional state of SfDataForm control

Hi

Can you provide an example of how to change the state of a SfDataForm control based on the values of other controls.

For example, disabling or hiding a control based on the value of another control on the form.

With regards. alon


I was able to achieve this by creating my own DataFormItemManager to collect the View of each dataForm item.

and disable or enable the appropriate View in the PropertyChanged of the SfDataForm's DataObject


1 Reply

VM Vidyalakshmi Mani Syncfusion Team September 6, 2023 01:22 PM UTC

Hi Alon,


You can achieve your requirement by using the data object’s PropertyChanged event of the MAUI Dataform control. Please refer to the following KB documentation for more information: https://support.syncfusion.com/kb/article/12751/how-to-change-the-editor-visibility-based-on-another-editor-in-net-maui-dataform-sfdataform



We hope that this helps you. Please let us know if you need further assistance.


Loader.
Up arrow icon