public DataFormDataAnnotationsDisplayOptionsCSharp() { // >> dataform-dataannotations-displayoptions-form var dataForm = new RadDataForm { Source = new Person() }; dataForm.RegisterEditor("Weight", EditorType.DecimalEditor); dataForm.RegisterEditor("Age", EditorType.IntegerEditor); // << dataform-dataannotations-displayoptions-form Content = dataForm; }
public DataFormDataAnnotationsDisplayValueFormat() { // >> dataform-dataannotations-displayvalueformat-form var dataForm = new RadDataForm { Source = new VoteResults() }; dataForm.RegisterEditor("Votes", EditorType.NumberPickerEditor); dataForm.RegisterEditor("Date", EditorType.DateEditor); // << dataform-dataannotations-displayvalueformat-form this.Content = dataForm; }
void InitDataForm() { var dataForm = new RadDataForm { Source = new Receivable() }; //this.dataForm.PropertyDataSourceProvider = new UserPropertyDataSourceProvider(); //dataForm.GroupLayoutDefinition = new DataFormGroupGridLayoutDefinition(); //var style = new DataFormEditorStyle //{ // FeedbackFontSize = 10, // PositiveFeedbackBackground = Color.Transparent, //}; //foreach (var property in typeof(Receivable).GetTypeInfo().DeclaredProperties) //{ // this.dataForm.RegisterEditor(property.Name, EditorType.Custom); //} //dataForm.RegisterEditor("", EditorType.IntegerEditor); dataForm.RegisterEditor("DebtAmount", EditorType.DecimalEditor); dataForm.RegisterEditor("PayableDay", EditorType.DateEditor); dataForm.RegisterEditor("PrepaidAmount", EditorType.DecimalEditor); dataForm.RegisterEditor("ClosedDay", EditorType.DateEditor); dataForm.RegisterEditor("CustomerName", EditorType.TextEditor); dataForm.RegisterEditor("DebtorName", EditorType.TextEditor); dataForm.RegisterEditor("AssignDate", EditorType.TextEditor); }
public DataFormGettingStartedCSharp() { // >> dataform-gettingstarted-setup-csharp var dataForm = new RadDataForm { Source = new SourceItem() }; // << dataform-gettingstarted-setup-csharp // >> dataform-gettingstarted-register-editors dataForm.RegisterEditor(nameof(SourceItem.Age), EditorType.IntegerEditor); dataForm.RegisterEditor(nameof(SourceItem.Name), EditorType.TextEditor); dataForm.RegisterEditor(nameof(SourceItem.Weight), EditorType.DecimalEditor); dataForm.RegisterEditor(nameof(SourceItem.Height), EditorType.IntegerEditor); // << dataform-gettingstarted-register-editors Content = dataForm; }
public DataFormDataAnnotationsConverterCSharp() { // >> dataform-dataannotations-converter-form var dataForm = new RadDataForm { Source = new Item() }; dataForm.RegisterEditor("Price", EditorType.NumberPickerEditor); // << dataform-dataannotations-converter-form Content = dataForm; }
public DataFormDataAnnotationsDataSourceKeyCSharp() { // >> dataform-dataannotations-datasourcekey-form var dataForm = new RadDataForm { Source = new LocationData(), PropertyDataSourceProvider = new LocationProvider() }; dataForm.RegisterEditor("Location", EditorType.PickerEditor); // << dataform-dataannotations-datasourcekey-form Content = dataForm; }