Dear all,
I am trying to access a DataFormItem and change it's IsReadOnly property when user changes another picker item in a certain way. I am using
var dataFormItem = dataForm.ItemManager.DataFormItems["Name"];
in the PropertyChanged event to get the item I want to change. It works as expected on UWP and Android, but throws an ArgumentNullException on IOS with the message "Value cannot be null. Parameter name: source". The dataform.ItemManager.DataFormItems.Count shows the same exception, despite seeing the full form on the device with 27 items.
Any idea what could be wrong here?
Thanks and kind regards,
Gerhard
Here is the stack trace:
at System.Linq.Enumerable.Where[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x0000d] in <872243e21728479098755c520ce89da6>:0
at Syncfusion.iOS.DataForm.DataFormItems.get_Item (System.String propertyName) [0x00015] in <702951e3caf247c4bdca5fb611e83ed1>:0
at Syncfusion.XForms.iOS.DataForm.DataFormDependencyService.GetDataFormItem (System.Object nativeObject, System.String propertyName) [0x00000] in <702951e3caf247c4bdca5fb611e83ed1>:0
at Syncfusion.XForms.DataForm.DataFormItems.get_Item (System.String propertyName) [0x00006] in <41d5e6e9c2cf4905b175b7ebb1e37ef0>:0
at GenericUserLogin.EditUserPage.EditUserPage_PropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x00058] in D:\Programme\Visual Studio 2017\Projects\GenericUserLogin\GenericUserLogin\GenericUserLogin\Views\92_EditUserPage.xaml.cs:137 23:31 07.08.2018