Home » , , » RadTreeView - The FindByTextCommand

RadTreeView - The FindByTextCommand

RadTreeView provides a command called FindByTextCommand. The command looks for nodes which have the same Text property as the specified command parameter.

Here is an example of how to use the FindByTextCommand:

[C#] Using the FindByTextCommand
Telerik.WinControls.Commands.FindByTextCommand cmd = new FindByTextCommand();
List<object> result = RadTreeView.ExecuteBatchCommand(this.radTreeView1.Nodes, -1, cmd, "MyNode");
if(result != null)
{
// Found nodes.
}

[VB] Using the FindByTextCommand
Dim cmd As Telerik.WinControls.Commands.FindByTextCommand = New Telerik.WinControls.Commands.FindByTextCommand
Dim result As List(Of Object) = RadTreeView.ExecuteBatchCommand(Me.RadTreeView1.Nodes, -1, cmd, "MyNode")
If Not result Is Nothing Then
'Found nodes.
End If

? Dev Components ? RadControls for WinForms ? Telerik Windows Forms RadTreeView

Source of Information :  2002-2010 Telerik. All Rights Reserved. Help
Jika Anda menyukai Artikel di blog ini, Silahkan klik disini untuk berlangganan gratis via email, dengan begitu Anda akan mendapat kiriman artikel setiap ada artikel yang terbit di Creating Website
 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. Information Computer and Technology - All Rights Reserved
Template Modify by Creating Website
Proudly powered by Blogger