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.
Thank you for your feedback.
The Groups property of UltraLiveTileView is of type TileGroupsCollection. The TileGroupsCollection inherits IndexedCollectionBase which implements indexer like this:
public T this[int index]
get
int count = this.list == null ? 0 : this.list.Count;
if ( index < 0 || index >= count )
throw new ArgumentOutOfRangeException();
return this.list[index];
So either there is an issue in your environment or something really weird is happening. Please, note that OpenEdge is not among supported environments. You can check all the supported environments by following the next link http://es.infragistics.com/support/supported-environments. What I can suggest you is to try, if it is possible, this on some other machine and/or environment and let me know if you are facing the same issue.
Looking forward to your reply.
Thanks for the info. I have logged an issue with Progress Tech Support.