Telerik Forums
UI for Xamarin Forum
0 answers
91 views

I have a rad list and i use BindingContextChanged to change isVisible trueOrFalse based on some coditions but it returns me the list where some items have white space down and some other items the bottom margin cut the infos in half.

 

Ioannis
Top achievements
Rank 1
Iron
 asked on 26 Jul 2023
1 answer
89 views

Hi, 

I'm trying to change the color of telerikInput:RadAutoCompleteView close icon, default it's dark,

I need to assign a color to it, can anyone help me

 

1 answer
111 views

hi good days to all,

i go through example source code here  https://github.com/telerik/telerik-xamarin-forms-samples/blob/master/QSF/QSF/Examples/DataFormControl/ReservationsExample/DataFormView.xaml.cs

validation is done through code behind :


private void DoneButton_Clicked(object sender, EventArgs e)
        {
            this.dataForm.FormValidationCompleted += DataForm_FormValidationCompleted;
            this.dataForm.ValidateAll();
        }

I'm using command binding in button to call delegate command in mvvm.  Is it  possible to call ValidateAll() from within mvvm or specific method to achieve this ? 

UMP
Top achievements
Rank 1
Iron
 updated question on 08 Jun 2021
1 answer
49 views

Hi,

would it possible to get sample of how set Font (TypeFace) DataFormSpinnerEditor, same as to DataFormTextEditor and DataFormIntegerEditor using EditorCustomizations delegate?

Regards,

Rodrigo

Yana
Telerik team
 answered on 04 Nov 2020
1 answer
76 views

I'm attempting to add a RadDataForm to a fragment:

this.form = new RadDataForm(this.Context);
var entity = new Models.Inventory.ConveyanceReceipt();
this.form.SetEntity(entity);
this._root.AddView(this.form);

The line where i call .SetEntity(object) throws a Java.Lang null pointer exception:

Unhandled Exception:
Java.Lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Class.isInterface()' on a null object reference.

 

The entity model is: 

 

public class ConveyanceReceipt : Java.Lang.Object
{
    [DataFormProperty(Label="Conveyance ID", Index = 1, Required = true)]
    public string Tracker { get; set; }
 
    [DataFormProperty(Label = "Scan Time", Index = 0, ReadOnly = true)]
    public DateTime Time { get; set; } = DateTime.Now;
}

 

I kept it very simple and I really am trying to wrap my head around why I can't get the basic example past SetEntity();

 

Any help would be greatly appreciated, is there some initialization that I'm not doing? I tried tracking down the isInterface getter and couldn't locate a value for it in debugger.

Didi
Telerik team
 answered on 02 Jan 2020
1 answer
104 views

Greetings,

I am trying to create a custom editor for one of my properties. The code I use is this:

 

[Android.Runtime.Register("my/name/space/ReaderEditor")]
    public class ReaderEditor : Com.Telerik.Widget.Dataform.Visualization.Core.EntityPropertyEditor
    {
        public ReaderEditor(RadDataForm form, IEntityProperty property) : base(form,
            form.EditorsMainLayout,
            form.EditorsHeaderLayout,
            Resource.Id.data_form_text_viewer_header1,
            Resource.Layout.DataFormTextViewerLayout,
            Resource.Id.data_form_text_viewer,
            form.EditorsValidationLayout,
            property)
        {            
        }

        public ReaderEditor(RadDataForm dataForm, int layoutId, int headerLayoutId,
            int headerViewId, int editorLayoutId, int editorViewId,
            int validationLayoutId, IEntityProperty property) :

            base(dataForm, layoutId, headerLayoutId, headerViewId, editorLayoutId,
                editorViewId, validationLayoutId, property)
        {
        }

        public override Java.Lang.Object Value()
        {
            return ((EditText)EditorView).Text;
        }

        protected override void ApplyEntityValueToEditor(Java.Lang.Object entityValue)
        {
            ((EditText)EditorView).Text = entityValue.ToString();
        }
    }

 

It's pretty basic actually, I just wanted to create a simple one in order to build on that afterwards. However when I run it I get the following exception:

 

Java.Lang.Error: The data form editor for property MYPROPERTY must have a constructor that accepts a Context and an EntityProperty.

 

How can I implement this editor?

Thank you for your time,

Vaggelis

Todor
Telerik team
 answered on 27 Apr 2016
1 answer
109 views

Greetings,

I have a few more questions about the DataForm editors.

1)I am interested in starting a new activity when the user tries to edit a certain property. Should I implement some kind of event, or create a new editor that overrides a certain method (and which)?

2)I would like to know if and how I could setup a multiline text editor.

Thank you in advance,

vagg

Todor
Telerik team
 answered on 18 Apr 2016
3 answers
42 views

Greetings,

I would like to know if it is possible to have a LIST<T> property as a member of the DataForm Entity.

Thank you for your time,

vagg

Todor
Telerik team
 answered on 15 Apr 2016
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
Iron
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?