I am trying to create a UI where I have a tree view on the left, and an edit form on the right that corresponds to the item selected in the tree view. I have attached my test page - it is stand alone. I am binding the edit form from the observableHierarchy change event. My problem is that when I have made a field edit in the form, and then select another item from the treeview, the itemchange events for the *selection* event are fired BEFORE the itemchange for the field data change. This causes me to re-bind the form BEFORE the field edit has been fired -- thereby losing the edit. If I click away from the form, all is well. Binding to the treeview select event does not help, as it fires before any of the observableHierarchy change events.
Can you suggest a better alternative to creating the desired UI? Is there some way to force the viewmodel update from within the select event?
Thanks,
Scott
Can you suggest a better alternative to creating the desired UI? Is there some way to force the viewmodel update from within the select event?
Thanks,
Scott