Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
147494 | Sep 12,2019 02:24 PM UTC | Oct 4,2019 06:40 AM UTC | Xamarin.Forms | 2 |
![]() |
Tags: SfDataForm |
[C#]
protected override List<DataFormItemBase> GenerateDataFormItems(PropertyInfoCollection itemProperties, List<DataFormItemBase> dataFormItems)
{
var items = new List<DataFormItemBase>();
DataFormGroupItem dataFormGroupItem = new DataFormGroupItem();
foreach (var propertyInfo in itemProperties)
{
dataFormGroupItem.GroupName = "General";
if (propertyInfo.Key == "Code")
dataFormGroupItem.DataFormItems.Add(new DataFormTextItem() { Name = propertyInfo.Key, Editor = "Text", GroupName = "General" });
else
dataFormGroupItem.DataFormItems.Add(new DataFormTextItem() { Name = propertyInfo.Key, Editor = "Text", GroupName = "General" });
}
items.Add(dataFormGroupItem);
return items;
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.