remoting and databinding
-
hello. i am trying to creat a server/clients application and i want the server to hold an object and the clients to recive references to that object. (so far easy) but i also want to do databinding on some of the propertyes so when someone changes a property the other clients will see the change live... i tryed treating the remote object as an ordnary object and creat databinding but it didnt work.. is it even posible? can any one here give me an example of how to do it?
-
hello. i am trying to creat a server/clients application and i want the server to hold an object and the clients to recive references to that object. (so far easy) but i also want to do databinding on some of the propertyes so when someone changes a property the other clients will see the change live... i tryed treating the remote object as an ordnary object and creat databinding but it didnt work.. is it even posible? can any one here give me an example of how to do it?
As far as I know, this isn't possible to do with remoting. Cool idea, but consider that every client should have a unique instance of the object on the server. So they're all separate entities. I have a very similar issue with a client and we had to write some custom code that updates the server with the value change (we're not using data binding at all), and then it notifies the other clients of value changes. But to do this, we wrap the value with some additional information and the whole mechanism handles not only discrete updates but also updates to things like DataTable objects, without resending the whole DataTable. In essence, you're going to have to create an architecture that supports this functionality. Marc MyXaml Advanced Unit Testing YAPO
-
As far as I know, this isn't possible to do with remoting. Cool idea, but consider that every client should have a unique instance of the object on the server. So they're all separate entities. I have a very similar issue with a client and we had to write some custom code that updates the server with the value change (we're not using data binding at all), and then it notifies the other clients of value changes. But to do this, we wrap the value with some additional information and the whole mechanism handles not only discrete updates but also updates to things like DataTable objects, without resending the whole DataTable. In essence, you're going to have to create an architecture that supports this functionality. Marc MyXaml Advanced Unit Testing YAPO
thats bad :( i realy dont want to rewrite the whole functionality of databinding. i will try to ask microsoft using my frind's msdn subscription. maybe it works in VS2005? if so i will probebly move to it. i even tryed to creat a PROPERTYWARPER just like an event warper needed to rase events with remoting.. in this case i could do the subscribing to databinding. but the data was not updating :(