Nodes.Find problem

2 posts, 0 answers
  1. lupotana
    lupotana avatar
    73 posts
    Member since:
    Nov 2006

    Posted 18 Feb 2009 Link to this post

    Hi, I have a problem with method Find in RadTreeView.Nodes

    The problem is that the function Find don't match nodes.

    In the next example I do three research use these proprerty :
    - Key
    - Tag
    - Text

    But the results (Count1,Count2 and Count3) are all 0.

    I don't understand.

     

    RadTreeView rad = new RadTreeView(); 

     

    RadTreeNode node = new RadTreeNode();

     

    node.Key =

    "1";

     

     

    node.Tag =

    "2";

     

     

    node.Text =

    "3";

     

     

     

    rad.Nodes.Add(node);

     

     

    RadTreeNode[] nodes1 = rad.Nodes.Find("1", true);

     

    RadTreeNode[] nodes2 = rad.Nodes.Find("2", true);

     

    RadTreeNode[] nodes3 = rad.Nodes.Find("3", true);

     

     

    int count1 = nodes1.Length;

     

    int count2 = nodes2.Length;

     

    int count3 = nodes3.Length;

     

     

  2. lupotana
    lupotana avatar
    73 posts
    Member since:
    Nov 2006

    Posted 19 Feb 2009 Link to this post

    I found.... the property is "Name"

    Sorry... I was a very stupid :-)

    Bye
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top