Re: Is it possible to consturct CellTree form database via rpc

2011-01-04 Thread Y2i
updateRowData()/updateRowCount() needs to be called on the data provider, not on the cell tree. - You first create a cell tree, passing a tree model to the cell tree constructor. - The tree model will be creating node info nodes in TreeViewModel.getNodeInfo() - DefaultNodeInfo takes an instance

Re: Is it possible to consturct CellTree form database via rpc

2011-01-04 Thread yeti
perfect, thank you very much On 1月4日, 下午4时22分, Y2i yur...@gmail.com wrote: updateRowData()/updateRowCount() needs to be called on the data provider, not on the cell tree. - You first create a cell tree, passing a tree model to the cell tree constructor. - The tree model will be creating

Re: Is it possible to consturct CellTree form database via rpc

2011-01-03 Thread yeti
Thank you Y2i, Your messages are greatly help to me But there is an another problem stuck in... updataRowCount() and updataRowData should work with hasData, but cellTree doesnt implement it, so my requestion is, as to cellTree, how do both functions above work? On 2010年12月30日, 下午12时39分, Y2i

Is it possible to consturct CellTree form database via rpc

2010-12-29 Thread yeti
Hi , I wonder if celltree can be built dynamically... getNodeInfo is synchronous, so how to work with a asynchronous, that is , get node info via a request? Someone said, pass a ListDataProvider or AsyncDataProvider into DefaultNodeInfo. Then you can return the NodeInfo synchronously, but

Re: Is it possible to consturct CellTree form database via rpc

2010-12-29 Thread Y2i
It can be populated dynamically. Please take a look at this post: http://groups.google.com/group/google-web-toolkit/msg/6a8f18668f046cc6 When the data provider receives results back it needs to populate itself by calling updateRowCount() updateRowData() On Dec 29, 7:12 pm, yeti