You can retrieve a group using the key but not the index. How would you go about looping through the TileGroupsCollection and retrieving the Group for each index?
Hello Roger,
Thank you for posting in our forum.
You can get a specific TileGroup from tiles group collection by index and by key. You may use code like this:
TileGroup myGroup = this.ultraLiveTileView1.Groups.Add("MyGroupKey", "My Group Text");
// Get TileGroup by index
int index = myGroup.Index;
TileGroup myGroupRefByIndex = this.ultraLiveTileView1.Groups[index];
// Get TileGroup by key
string key = myGroup.Key;
TileGroup myGroupRefByKey = this.ultraLiveTileView1.Groups[key];
If you need to get the indexes of all the TileGroups you may use code like this:
// Get all TileGroups keys and indexes
Dictionary<int, TileGroup> indexes = new Dictionary<int, TileGroup>();
foreach (TileGroup group in this.ultraLiveTileView1.Groups)
{
indexes[group.Index] = group;
}
Please let me know if this is what you are looking for or if I am missing something.
Thank you for using Infragistics Components.
Hmm, that indexer does not work in my environment (TileGroup myGroupRefByIndex = this.ultraLiveTileView1.Groups[index]). We are using Infragistics in an OpenEdge environment
In looking at the class browser it states the following;
PUBLIC PROPERTY Item AS Infragistics.Win.UltraWinLiveTileView.TileGroup [key AS character] GET.
Member of Infragistics.Win.UltraWinLiveTileView.KeyedCollectionBase<Infragistics.Win.UltraWinLiveTileView.TileGroup>
Summary:
Note:This is an indexed property.