Re: [qooxdoo-devel] Dynamic updates to Remote model of Table

2010-09-21 Thread jacob
thron7-2 wrote: > > I'm not familiar with the internals of model.Remote. I think you have to > override _loadRowData anyway, and this is just what prefetchRows calls. > Which other method do you have to fetch data from the server? > _loadRowData is overridden to load data from the server. But

Re: [qooxdoo-devel] Dynamic updates to Remote model of Table

2010-09-21 Thread thron7
> When you say request the next couple of higher indexes - what would be the > best way to do it - prefetchRows(which I tried and didn't worked for me) or > call to _loadRowData? I'm not familiar with the internals of model.Remote. I think you have to override _loadRowData anyway, and this is ju

Re: [qooxdoo-devel] Dynamic updates to Remote model of Table

2010-09-21 Thread jacob
thron7-2 wrote: > >> Yes, from the server. The row would be *inserted* on the server but at >> the >> end, so as soon I remove something on client side I want to get some more >> rows from the end without clearing cache. > > But that is easy. You can removeRow on the client, and for the new row

Re: [qooxdoo-devel] Dynamic updates to Remote model of Table

2010-09-21 Thread thron7
On 09/21/2010 11:57 AM, jacob wrote: > > Sorry, should have been more clear the first time > > I want to present to my users (client side) collection of objects (rows). > This collection however can change over time server side so I would like to > synchronize it with clients. As mentioned

Re: [qooxdoo-devel] Dynamic updates to Remote model of Table

2010-09-21 Thread jacob
panyasan wrote: > > Hi, > > I was trying to solve this question once, using a comet/server-push-like > mechanism. I built a "databinding" layer on top of the TreeVirtual and the > Table widgets which manipulated their internal cache incrementally. Parts > of this can be seen in the "virtualdata

Re: [qooxdoo-devel] Dynamic updates to Remote model of Table

2010-09-21 Thread jacob
Sorry, should have been more clear the first time I want to present to my users (client side) collection of objects (rows). This collection however can change over time server side so I would like to synchronize it with clients. As mentioned before I'm using table to display my collection and

Re: [qooxdoo-devel] Dynamic updates to Remote model of Table

2010-09-21 Thread panyasan
Hi, I was trying to solve this question once, using a comet/server-push-like mechanism. I built a "databinding" layer on top of the TreeVirtual and the Table widgets which manipulated their internal cache incrementally. Parts of this can be seen in the "virtualdata" contrib. However, this involve

Re: [qooxdoo-devel] Dynamic updates to Remote model of Table

2010-09-21 Thread thron7
I'm not sure I'm following you here... > I have a table with remote model behind it. > > I was wondering how can I refresh add content to Remote model without > refreshing the whole cache. What does that mean? You want to add/update content to the model on the client side, through user interacti

[qooxdoo-devel] Dynamic updates to Remote model of Table

2010-09-20 Thread jacob
Hi, I have a table with remote model behind it. I was wondering how can I refresh add content to Remote model without refreshing the whole cache. I would like to do it in similar fashion as I can removeRow which removes row from the table and decreases the count. What I'm trying to achieve is t