Hi,
i have a list of custom objects that i would like to bind with the ultranavigationbar
such as :
Public class testObj
public property Id as string
public property Text as string
public property Items as List(of CustomObj)
end class
i would like to bind the display the Text of the "testObj" and in the UltraListView, display the list of Items (CustomObj)
every samples/ex i saw are for windows path etc...
Thank you...
The control does not support data binding, you have to manually add the locations using the Locations property. Assuming you have a generic list of your custom objects, you would iterate that list and add a member to the RootLocation.Locations collection for each item in the list. For the Items property, you would iterate the items in that list and add a location to the Locations collection of the location that was added to the RootLocation's Locations collection, continuing this process recursively as necessary.
Another way to do this is, after populating the RootLocation.Locations collection, handle the InitializeLocations event. This event will fire as subsequent Locations collections are requested, at which time you can populate the Locations collection with the items in your custom object's Items collection.