Edit this page

findByText

Searches for a node that has specific text.

Parameters

text String

The text that is being searched for.

Returns

jQuery All nodes that have the text.

Example

<div id="treeview"></div>
<script>
$("#treeview").kendoTreeView({
  dataSource: [
    { text: "foo" },
    { text: "bar" }
  ]
});

var treeview = $("#treeview").data("kendoTreeView");
// find the node with text "foo"
var foo = treeview.findByText("foo");
console.log(foo);
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy