My mistake was binding to the property of my ItemSource object that was a related object from my context. I am now instead binding to the objectId property on my object. Example: bind to UserStatusId(type: Int) property, instead of the UserStatus (type:UserStatus) property.
Now my concern is the RIA Services. Some my objects only expose the related object as a property, not the related objectId as a property. In others, I have both. What drives this?
RogerGu
Participant
1124 Points
420 Posts
DataForm and DataFormComboBoxField
Jun 11, 2009 05:26 PM | LINK
I have struggled with this, but am finally figuring out one thing I did wrong. I based my app on what Bob Baker posted here:
http://silverlight.net/forums/p/94171/231667.aspx#231667
My mistake was binding to the property of my ItemSource object that was a related object from my context. I am now instead binding to the objectId property on my object. Example: bind to UserStatusId(type: Int) property, instead of the UserStatus (type:UserStatus) property.
Now my concern is the RIA Services. Some my objects only expose the related object as a property, not the related objectId as a property. In others, I have both. What drives this?
Thanks,
Roger
Twitter
TOUMI fethi
Member
2 Points
1 Post
Re: DataForm and DataFormComboBoxField
Jul 02, 2009 03:07 PM | LINK
Hi Roger,
I want to do the same thing : my context is already loaded before i go to the page.
I want to load all referentiel data (data to put later in combos) when the application start up
Can you share a sample of your code?
Did you have an idea of how can i implement caching ?
Thanks