This is a migrated thread and some comments may be shown as answers.

Get item value from TreeView?

0 Answers 60 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Frode
Top achievements
Rank 1
Frode asked on 14 May 2010, 03:28 PM
Hi,
I'm using the ClientEvents as described in the samles to run a javascript function when a treeview node is clicked (onSelect).

In the javascript function I can get the .text() of the node, but what I really need is the value. How can I get it?

function onSelect(e) {
  var item = $(e.item);
  alert(item.text());

  alert(item.value()); //Doesn't work :(
}
Tags
TreeView
Asked by
Frode
Top achievements
Rank 1
Share this question
or