public virtual void SetActiveGroup(string id) { GroupTab activeGroup = null; for (int i = 0; i < this.Groups.Count; i++) { if (this.Groups[i].ID == id) { activeGroup = this.Groups[i]; break; } } if (activeGroup == null) { throw new InvalidOperationException("The '{0}' item does not exist with the '{1}' TabPanel.".FormatWith(id, this.ID)); } this.SetActiveGroup(activeGroup); }
public virtual void SetActiveGroup(GroupTab group) { this.Call("setActiveGroup", group.ClientID); }