Verifying Image in Tree Node

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
Rakesh123
Posts: 72
Joined: Thu Oct 28, 2010 2:18 pm

Verifying Image in Tree Node

Post by Rakesh123 » Sun Dec 09, 2012 12:19 pm

Hi,

I have a scenario where I need to verify an image before a tree node.

Here is the scenario..

There is a Tree object which several Tree Nodes and each & every node is having an image before it & all the tree nose are having the same image as shown below.

----Parent Node
---- i1 Child Node1
---- i1 Child Node2
---- i1 Child Node3
|
|
|
|
---- i1 Child Node n
So here I need to verify an image before Child Node2.I am trying to do this but the problem is before every TreeItem same image is present.So even the Child node doesn't contain the particular Image and other tree nodes containing the image the result will pass.

So pls provide me the code to verify this scenario.

Thanks,
Rakesh

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Verifying Image in Tree Node

Post by Support Team » Mon Dec 10, 2012 10:31 am

Hello Rakesh,

Which technology is used in your application (web, winforms, flex, ...)?
Could you please send us a snapshot file to see how your tree is organized?
Thank you!

Regards,
Bernhard

Rakesh123
Posts: 72
Joined: Thu Oct 28, 2010 2:18 pm

Re: Verifying Image in Tree Node

Post by Rakesh123 » Wed Jan 09, 2013 1:38 pm

Hi,

The application is developed using Delphi and its a windows application

Please find the attached snap shot.

Thanks,
Rakesh
You do not have the required permissions to view the files attached to this post.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Verifying Image in Tree Node

Post by Support Team » Wed Jan 09, 2013 4:53 pm

Hello Rakesh,

Thank you for the snapshot file!
You can try to use the attribute 'childindex' to verify the correct image of the list item.

E.g. The value of attribute 'childindex' from the item 'Problem List/Past Medical' is 5 and the value of the corresponding image has the value 4.
With this value you can check if an image for a given list entry is available.

Regards,
Bernhard