Rank: Member Groups: Member
Joined: 9/1/2010 Posts: 20
|
Dear,
I have an web application using treeview control with checkbox only on the leaf node. I put a linkbutton to check all the leaf node with javascript, but i can't find a method or properties on documentation to do that.
Please kindly help.
Regards,
Alex
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, You will need to call this function: http://doc.essentialobjects.com/library/1/jsdoc.public.treenode.setcheckstate.aspxIf you have not used our client side Javascript before, you will need to go over this topic: http://doc.essentialobjects.com/library/1/clientapi_howto.aspxHope this helps. Thanks
|
Rank: Member Groups: Member
Joined: 9/1/2010 Posts: 20
|
Dear,
Thanks for your quick reply before. I have solved that problem. Now i have one little problem according to my previous problem.
Is there any method or properties in treeview that return any changes in treenode checkbox with javascript. I'm looking something like changedItems() method in datagrid.
I aware that there is method treeview_checkstatechanging_handler(treeview, node, oldCheckState, newCheckState) that handle changes in treenode checkbox, but i'm looking something like datagrid method, so i only get change item in tree node.
Is it possible in treeview??
Regards,
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Unfortunately no. The TreeView does not keep a list of all changed nodes. So you will have to keep track of the changes yourself. On the client side you would need to rely on ClientSideOnCheckStateChanging event, on the server side you would rely on ItemCheckStateChangedEvent.
Thanks!
|