16 May 2011 10:56 PM #1
Removing Node From TreePanel
here is my code:
]MDTNodeModel selectedModel = (MDTNodeModel) mdtPanel.getSelectionModel().getSelectedItem();
TreeStore<BaseModel> store = (TreeStore<BaseModel>) mdtPanel.getStore();
List<? extends BaseModel> storeList = store.getAllItems();
store.remove(selectedModel); //Error occurs here i exactly now that selectedModel object is not null
//and also store object
17 May 2011 4:33 AM #2
Try executing this in debug mode.
Add then a NullPointerException breakpoint.
You will then be able to see where the error is, hopefully.
9 Nov 2012 2:27 AM #3
Even i am facing the Same issue when i try to remove a node which is selected it throws error.
if i iterate all the child's and remove, which are not selected gets removed without any error it fails for the one selected, BTW on the screen the Seleted node gets removed but the Later code written is not executed.
dato.java were you able to solve the issue.
could you suggest me how to Reorder the nodes inside a parent using a button not by DND
By bjornj in forum Ext GWT: DiscussionReplies: 4Last Post: 22 Feb 2011, 10:40 PM
By sgdevteam in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 10 Mar 2010, 5:46 PM
By varsha.kothari in forum Ext 2.x: Help & DiscussionReplies: 6Last Post: 14 Apr 2009, 1:13 AM
By bsklar_ca in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 10 Feb 2009, 12:57 PM
By sz_146 in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 7 Nov 2008, 6:58 AM