/// <summary> /// Sets the values on select. /// </summary> protected override void SetValuesOnSelect() { var dataViewIds = ItemIds.AsIntegerList().Where(a => a > 0).ToList(); var dataViews = new DataViewService(new RockContext()).Queryable().Where(g => dataViewIds.Contains(g.Id)); this.SetValues(dataViews); }
/// <summary> /// Sets the values on select. /// </summary> protected override void SetValuesOnSelect() { this.SetValuesFromCache(ItemIds.AsIntegerList().Select(a => NamedScheduleCache.Get(a)).ToList()); }