[SOLVED] stop event fire at calling treeNodeUI.toggleCheck()
Published by: webmaster 2009-01-09
at v2.0, treeNodeUI.toggleCheck() toggles checkboxs without firing an checkbox(click/change) . but at v2.1 treeNodeUI.toggleCheck() not only toggle checkbox but also fire checkchange event,
there is an option to stop the checkchange event fire.
my codes use treepanel as a control where all the logics are based upon no event fire at
reeNodeUI.toggleCheck() but just change checkbox check status. there should be a method
that change checkbox status without firing an event so that codes can manipulate treenode
checkbox UI cherckstatus when treepanel is used for a controller.
mxu -
This is a great example which illustrates that sometimes you will want to implement overrides for your Ext code not because of a bug but because you want something it doesn't provide.
Take a look at this post which details how to add a toggleCheckNoEvent method to your TreeNodeUI.
http://extjs.com/forum/showthread.php?t=34902&highlight=toggleCheckNoEvent&p=165475
You can then call the new toggleCheckNoEvent method on TreeNodeUI.
thanks for the solution. all things go back to work now