Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
147501 | Sep 13,2019 03:58 AM UTC | Sep 25,2019 10:25 AM UTC | Xamarin.Forms | 4 |
![]() |
Tags: SfDataForm |
[C#]
//DataFormPickerItem
dataFormItem = new DataFormPickerItem() { Name = propertyInfo.Key, DisplayMemberPath = "Description", ValueMemberPath = "Code", Editor = "Picker", ItemsSource = this.GetItemSource("CustomerGroup") };
//DataFormDropDownItem
dataFormItem = new DataFormDropDownItem() { Name = propertyInfo.Key, DisplayMemberPath = "Description", SelectedValuePath = "Code", Editor = "DropDown" , ItemsSource = this.GetItemSource("CustomerGroup") };
private IList GetItemSource(string sourceName)
{
var list = new List<SimpleInfo>();
if (sourceName == "CustomerGroup")
{
list.Add(new SimpleInfo() { Code = "", Description = "No Group" });
list.Add(new SimpleInfo() { Code = "W", Description = "W. Wholesales" });
list.Add(new SimpleInfo() { Code = "O", Description = "O. Online" });
list.Add(new SimpleInfo() { Code = "R", Description = "R. Retails" });
}
return list;
} |
[C#]
//DataFormDropDownItem
dataFormItem = new DataFormDropDownItem() { Name = propertyInfo.Key, DisplayMemberPath = "Description", SelectedValuePath = "Code", Editor = "DropDown" , ItemsSource = this.GetItemSource("CustomerGroup"), LayoutOptions = LayoutType.Default }; |
iOS project -> Properties -> iOS Build -> Additional mtouch arguments -> add --linkskip=System.core |
[c#]
[assembly: Preserve(typeof(System.Linq.Queryable), AllMembers = true)]
namespace FormLayout.iOS
{
public class Application
{
// This is the main entry point of the application.
}
} |
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.