Welcome Guest Search | Active Topics | Sign In | Register

Check All leaf node in treeview with javascript Options
Alex
Posted: Wednesday, May 11, 2011 4:18:52 AM
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
eo_support
Posted: Wednesday, May 11, 2011 8:16:40 AM
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.aspx

If 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.aspx

Hope this helps.

Thanks
Alex
Posted: Saturday, May 14, 2011 12:32:06 AM
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,
eo_support
Posted: Saturday, May 14, 2011 7:23:39 AM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.