Welcome Guest Search | Active Topics | Sign In | Register

Treeview Options
hmrsur
Posted: Sunday, September 7, 2008 7:08:10 AM
Rank: Newbie
Groups: Member

Joined: 7/18/2007
Posts: 6
Hi,

read the selected nodename / url from the clientside. is this possible ?

sur
eo_support
Posted: Sunday, September 7, 2008 7:17:35 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,193
Hi,

Yes. It is. You will need to call this function:

http://www.essentialobjects.com/ViewDoc.aspx?t=JSDoc.Public.TreeView.getSelectedNode.html

The code will be something like this:

Code: JavaScript
window.alert(eo_GetObject("TreeView1").getSelectedNode().getText());


Note getSelectedNode returns a TreeNode object, which inherits from NavigationItem object, that's why you can call getText method even though you do not see getText on the TreeNode object in the reference section because the method is defined on the NavigationItem object.

You can find more details about how to use the client side API here:

http://www.essentialobjects.com/ViewDoc.aspx?t=clientapi_howto.html

Hope this helps.

Thanks
hmrsur
Posted: Wednesday, September 10, 2008 9:55:51 AM
Rank: Newbie
Groups: Member

Joined: 7/18/2007
Posts: 6
Thank you for the quick response.

sur


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.