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

Handling EntityRefs in a DataForm

1 Answer 48 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ron
Top achievements
Rank 1
Ron asked on 03 Nov 2013, 10:26 AM
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.

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 06 Nov 2013, 11:34 AM
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.
Tags
DataForm
Asked by
Ron
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or