-
Sencha User
Answered: Tree Panel checkbox icon problem
Hi,
I need help. I have Tree Panel and Grid Panel. In tree panel are categories from database. After onclick event in tree panel is automatically loaded store from ajax request to grid panel. In grid is column with checkboxes. And here is my problem. After check/uncheck record in grid I want set checkbox icon in treepanel (id field from tree store is the same what parent field in grid store) and icons for this node parents. I haven't idea how i can do it.
Any help? It's very important for me...
-
Best Answer Posted by
vietits
1. On check/uncheck item in grid, get recordId of checked/unchecked record.
2. Get respective node in tree panel by using <treeStore>.getNodeById().
3. If node found, then call node.set('checked', true/false).
-
1. On check/uncheck item in grid, get recordId of checked/unchecked record.
2. Get respective node in tree panel by using <treeStore>.getNodeById().
3. If node found, then call node.set('checked', true/false).
-
Sencha User
great! it's working. 
My last problem is How can I set a css propeties this node? I want set checkbox background image in tree panel (default is checkbox.gif)
-
Try to use <node>.set('cls', 'nodeClass').
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules