private void LoadGroupTypes()
{
_ddlGroupType.Items.Clear();
_ddlGroupType.Items.Add( Rock.Constants.None.ListItem );
var groupTypeService = new Rock.Model.GroupTypeService( new RockContext() );
// get all group types that have the ShowInGroupList flag set
var groupTypes = groupTypeService.Queryable().Where( a => a.ShowInGroupList ).OrderBy( a => a.Name ).ToList();
foreach ( var g in groupTypes )
{
_ddlGroupType.Items.Add( new ListItem( g.Name, g.Id.ToString().ToUpper() ) );
}
}