This is a migrated thread and some comments may be shown as answers.

Picker only change value once

3 Answers 26 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Hector
Top achievements
Rank 1
Hector asked on 13 Jan 2020, 03:01 PM

I have a dataform with a picker, but when I select it more than once it does not change value

 

private string categoria = string.Empty;    
 
 
       [DisplayOptions(Group = "Categoria", Position = 1, ColumnSpan = 2, Header = "Categoria", PlaceholderText = "Categoria")]
       [DataSourceKey(nameof(CategoriaI))]
       public string Categoria
       {
           get
           {
               return this.categoria;
           }
           set
           {
               if (this.categoria != value)
               {
                   this.categoria = value;
                   this.OnPropertyChanged();
               }
           }
       }

 

namespace Telerik.XamarinForms.Common
{
    public abstract class NotifyPropertyChangedBase : INotifyPropertyChanged
    {
        protected NotifyPropertyChangedBase();
 
        public event PropertyChangedEventHandler PropertyChanged;
 
        protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null);
        protected bool UpdateValue<T>(ref T field, T value, [CallerMemberName] string propertyName = null);
    }
}

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 14 Jan 2020, 12:52 PM

Hello,

I have tested the provided code with a Picker Editor, still, on my side I am able to select and change the value without a problem. I have attached my test project to show you exactly what I have tried. Please download the attached solution and give it a try.  If you find I am missing something, let me know.

I am looking forward to your reply.

Regards,
Yana
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Sadanan
Top achievements
Rank 1
answered on 19 Mar 2020, 11:13 AM
I'm also facing this issue. I have multiple picker editor in my dataform. but the picker only changes value once in UI. From second time onwards, If I click another element of dataform then picker value updates in UI 
0
Yana
Telerik team
answered on 19 Mar 2020, 02:16 PM

Hello Sadanan,

I would need more information on the scenario you have, so I can research the erroneous behavior you've come across.

It would be of great help if you can either modify the previously attached project, so that the issue can be reproduced with it, or isolate it in a new one, and send it over.

You would need to open a support ticket and attach the zipped solution there. Thank you in advance.

Regards,
Yana
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
DataForm
Asked by
Hector
Top achievements
Rank 1
Answers by
Yana
Telerik team
Sadanan
Top achievements
Rank 1
Share this question
or