All calls to DataForm_AutoGeneratingDataFormItem, (6 items, all non-null), are completing successfully. At their completion, I am getting a "System.ArgumentNullException: Value cannot be null. Parameter name: element" error before the page displays. I've attempted to step into the deep source but I lack the appropriate pdb's. I've attached a call stack and the code for the auto-gen event, (I'm not getting an error in the event). Any ideas? If not, I'll back out the control and code this manually. Thanks.
private void DataForm_AutoGeneratingDataFormItem(object sender, Syncfusion.XForms.DataForm.AutoGeneratingDataFormItemEventArgs e)
{
try
{
if (e.DataFormItem != null)
{
// Added 7/29/18 in an attempt to circumvent a pesky null value issue
var itemName = e.DataFormItem.Name;
switch (itemName)
{
case "Title":
e.DataFormItem.Name = AppResources.DataFormTitle;
break;
case "Description":
e.DataFormItem.Name = AppResources.DataFormDescription;
break;
case "PrayerFor":
e.DataFormItem.Name = AppResources.DataFormFor;
break;
case "PrayerType":
e.DataFormItem.Name = AppResources.DataFormType;
break;
case "PryrStatus":
e.DataFormItem.Name = AppResources.DataFormStatus;
break;
case "PrayerVis":
e.DataFormItem.Name = AppResources.DataFormVisibility;
break;
}
}
}
Attachment:
CallStack_885a584e.zip