Picker only change value once

4 posts, 0 answers
  1. Hector
    Hector avatar
    1 posts
    Member since:
    Aug 2019

    Posted 13 Jan Link to this post

    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);
        }
    }
  2. Yana
    Admin
    Yana avatar
    5002 posts

    Posted 14 Jan Link to this post

    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
  3. Sadanan
    Sadanan avatar
    2 posts
    Member since:
    Dec 2018

    Posted 19 Mar Link to this post

    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 
  4. Yana
    Admin
    Yana avatar
    5002 posts

    Posted 19 Mar Link to this post

    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
Back to Top