setCellModel(table) before or after table.request()?
Most code samples available here show this: var table = new AW.XML.Table;
I have discovered that, by doing so, cell that user edited previously won't get back in synch. with the data source.
I solved this issue by issuing obj.setCellModel(table) BEFORE table.request(): var table = new AW.XML.Table;
obj.setCellModel(table); /* moved this instruction 2 lines up */
And it looks like working fine...
Any thoughts on possible drawback?
Thierry Nivelet (FoxInCloud)
Friday, December 9, 2011
By default the request to the server is sent asynchronously and there is no difference if you call setCellModel before or after request (it will be before the data arrives in both cases). However in synchronous mode (table.setAsync(false)) you should call setCellModel before the request.
Sunday, December 11, 2011
You got it right Alex,
Though I did not mention it in my code sample my request is ... Synchronous!
And thanks for the reply.