i have extended the DataSource Class and have my own DataSource
it's setClientOnly(true); and at certain event i fill it with the data returned from my server as a listGridRecords using addData (Record record).
this DataSource is binded to a TreeGrid with the following properties :
setAutoFetchData(true);
setLoadDataOnDemand(false);
setShowOpenIcons(false);
setShowDropIcons(false);
setClosedIconSuffix("");
setDataSource(....Object from my DS....);
on run time i want to get refrence to the treeGrid nodes using
pTree.getRecords().
OR
pTree.getTree.getAllNodes();
i have tried to use all available methods but i got the same Error :
java.lang.ClassCastException: com.smartgwt.client.widgets.grid.ListGridRecord cannot be cast to com.smartgwt.client.widgets.tree.TreeNode.
--- how i can access the treenodes by anyway ...please advice
it's setClientOnly(true); and at certain event i fill it with the data returned from my server as a listGridRecords using addData (Record record).
this DataSource is binded to a TreeGrid with the following properties :
setAutoFetchData(true);
setLoadDataOnDemand(false);
setShowOpenIcons(false);
setShowDropIcons(false);
setClosedIconSuffix("");
setDataSource(....Object from my DS....);
on run time i want to get refrence to the treeGrid nodes using
pTree.getRecords().
OR
pTree.getTree.getAllNodes();
i have tried to use all available methods but i got the same Error :
java.lang.ClassCastException: com.smartgwt.client.widgets.grid.ListGridRecord cannot be cast to com.smartgwt.client.widgets.tree.TreeNode.
--- how i can access the treenodes by anyway ...please advice
Comment