Example #1
0
        protected override EntityPropertyEditor GetCustomEditorForProperty(RadDataForm form, IEntityProperty nativeProperty, Telerik.XamarinForms.Input.DataForm.IEntityProperty property)
        {
            if (nativeProperty.Name() == "Animal")
            {
                return(new Com.Telerik.Widget.Dataform.Visualization.Editors.DataFormAutoCompleteEditor(form, nativeProperty));
            }

            return(base.GetCustomEditorForProperty(form, nativeProperty, property));
        }
            public bool OnBeforeCommit(IEntityProperty p0)
            {
                // Return true to cancel the commit for the given property.
                if (p0.Name ().Equals ("Age")) {
                    return true;
                }

                return false;
            }
            public bool OnBeforeCommit(IEntityProperty p0)
            {
                // Return true to cancel the commit for the given property.
                if (p0.Name().Equals("Age"))
                {
                    return(true);
                }

                return(false);
            }
        public Java.Lang.Object Apply(Java.Lang.Object p0)
        {
            IEntityProperty property = (IEntityProperty)p0;

            if (property.Name().Equals("EmployeeType"))
            {
                return(new CustomEditor(dataForm, property));
            }

            return(null);
        }