Handling EntityRefs in a DataForm

2 posts, 0 answers
  1. Ron
    Ron avatar
    1 posts
    Member since:
    Feb 2013

    Posted 03 Nov 2013 Link to this post

    Hi,

    Can anyone point me in the right direction on how to handle EntityRefs in a DataForm?

    At the simplest level, my DataContext has a Table with a Many:1 relationship to a Country table like so:

            [Column]
            internal int _countryId;
            private EntityRef<Country> _country;
            [Association(Storage = "_country", ThisKey = "_countryId", OtherKey = "id", IsForeignKey = false)]
            public Country Country
            {
                get { return _country.Entity; }
                set
                {
                    NotifyPropertyChanging("Country");
                    _country.Entity = value;

                    if (value != null)
                    {
                        _countryId = value.id;
                    }

                    NotifyPropertyChanging("Country");
                }
            }

    How would I tie this in XAML to a RadPickerList? Preferably as simple as I would do with a standard Data Field Type.

    This is the first time I'm using the RadDataForm so I'm a little bit lost on the best (and most efficient) way to proceed, any help would be gladly appreciated.

    Cheers,
    Ron.
  2. Deyan
    Admin
    Deyan avatar
    2041 posts

    Posted 06 Nov 2013 Link to this post

    Hello Ronald,

    Currently this feature is not supported in RadDataForm. We do have plans to support it and it will be great if you put it on our Windows Phone feedback portal so that we can track the demand for it and plan accordingly:

    http://feedback.telerik.com/Project/112

    Thanks for your time.

    Regards,
    Deyan
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  3. DevCraft banner
Back to Top