PDA

View Full Version : extjs 4.0.7 treepanel itemclick



ShrutiRuparel
25 Oct 2011, 5:04 AM
I am working with extjs 4.0.7 & rails 3.

I have two trees left & right. The tree stores for both store is REST .
On selection of node on LEFT tree, i am loading trees store of right tree so that child of selected left node gets displayed on right tree. Everything works well for for first item click, but after that DELETE query gets fired on store.load(...) instead of GET when i use extjs 4.0.7, but I dont face this problem when i use extjs 4.0.6 . What may be wrong?

Following is my PARTIAL code :
..........
me.down('#leftTree').on('itemclick', me.populateRightTree, me);
...............
populateRightTree : function(){
var rightTreeStore = this.down('#rightTree').getStore();

var parent = this.down('#leftTree').getView().getSelectionModel().getSelection()[0];

rightTreeStore .load({params:{"parent_id": parent.data.id}});

}
......