Dec 14, 2011, 8:50 AM
[CLOSED] Disable Selection on TreePanel on form no valid
Hey All,
I'm just wondering how if possible I would disable selection on a TreePanel. Basicly I have a TreePanel with forms on each child node, each form updates or creates a record in a store when the user changes to a different node. Once the user is happy they click a save button and commit the store to the DB which works great. My problem is when a form isn't valid I want that form to be displayed until it becomes valid. I have managed the first part which was stop the user changing form but the selection on the tree changes giving the impression that you've changed to a different node which I don't want. I want the selection to stay on the same node with the error no matter where on the tree the user clicks.
Thanks
I'm just wondering how if possible I would disable selection on a TreePanel. Basicly I have a TreePanel with forms on each child node, each form updates or creates a record in a store when the user changes to a different node. Once the user is happy they click a save button and commit the store to the DB which works great. My problem is when a form isn't valid I want that form to be displayed until it becomes valid. I have managed the first part which was stop the user changing form but the selection on the tree changes giving the impression that you've changed to a different node which I don't want. I want the selection to stay on the same node with the error no matter where on the tree the user clicks.
Thanks
Last edited by Daniil; Dec 14, 2011 at 9:37 AM.
Reason: [CLOSED]