Hey,

> Seems like there is a solution for almost everything :)
I would really love that if it were that way but can't promise it. ;)

> Hopefully this will continue with my next problem - having submitted the
> form to the server (and beforehand having updated the model manually), I
> would like to see the changes reflected in the tree. This works well for the
> labels (they do get updated as soon as I update the model), but the icons
> are determined by the delegate, which in turns depend on several model
> properties. For some reason the icons do not get updated when the model
> changes. 
The model gets updated as soon as the single property you used for initializing 
the binding changes. If one of the others changes, the controller does not know 
anything about it.


> Of course I can achieve this by re-loading the data from the server, but I
> don't want to do that. It seems to me that if I can save a server call
> (especially since all the data is already in the client), it is better to do
> it that way. Is there a way to force the controller to recall the delegate
> on that item?
Reloading the data is really the last thing you should do here! There is no 
need for that. You can either pick a property which changes in any case, or you 
define a custom property in the model which will be set by any other property 
it depends on. Another option would be quite the reverse. You create your 
custom tree / list item and add all the properties the icon depends on. In the 
apply of each property, you can set the icon and bind each property for itself.

Regards,
Martin
------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to