How to GetItemByFullPath "FullPath" use Id property instead of Name?

Grids for WPF Forum

Posted 5 months ago by Ethem Acar
Version: 22.1.1
Avatar

I want to make every Path unique by using id instead of name, names are not unique in my list which breaks GetItemByFullPath method.
How can I do this?

Comments (1)

Answer - Posted 5 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

GetItemByFullPath breaks up the full path by the PathSeparator string, which by default is "\".  It then looks for a matching path segment at each level by calling into the itemAdapter.GetPath() method to get the path segment of each node.  If you override your item adapter's GetPath() method to return IDs instead of names, then that should work.


Actipro Software Support

The latest build of this product (v22.1.3) was released 23 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.