Skip to main content

Microsoft Silverlight

Unanswered Question DataForm and DataFormComboBoxFieldRSS Feed

(0)

RogerGu
RogerGu

Participant

Participant

883 points

258 Posts

DataForm and DataFormComboBoxField

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

TOUMI fethi
TOUMI fethi

Member

Member

2 points

1 Posts

Re: DataForm and DataFormComboBoxField

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

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities