Forum Discussion

mrezahoseini's avatar
mrezahoseini
Contributor
8 years ago

have problem in reading an object from treeview

Hello

 

I've got a treeview, which contains some objects in it. I'm not able to click on its objects via their values, I can click on every object via it's index.

 

for instanace :

This structure is ok : treeView.DblClickItem("|[0]|[6]");

This structure doesn't work : treeView.DblClickItem("|value1|value2");

 

What shall I do?

Thanks

4 Replies

  • Ryan_Moran's avatar
    Ryan_Moran
    Valued Contributor

    You can write a procedure to click based on text or other properties by evaluating said properties, correlating them to the index, and performing the index based click.

    • Colin_McCrae's avatar
      Colin_McCrae
      Community Hero

      What Ryan said.

       

      Not all tree/list type selectors work properly when addressed directly by text values. You may need to do a bit of searching and evaluating of properties in order to determine the index numbers required.

       

      I have some grids, trees, lists and menus that require a little "pre-work" along these lines.

       

      Not all controls make life simple for you. Same with devs. Combine the two? .........................................

      • mrezahoseini's avatar
        mrezahoseini
        Contributor

        I've been working with properties without any result!?

         

        I need other suggestion

         

        Thanks