public void OnGridBindingStart(object sender, GridControllerArgs args) { var list = args.SourceCollection; if (list != null && list.Count > 0 && list[0] is Request) { int[] requestIds = new int[list.Count]; for (int i = 0; i < list.Count; i++) { requestIds[i] = ((IEntity)list[i]).ID.Value; } _votedByLoggedUserCache = Request.FilterAttachedToLoggedUser(requestIds); } }
public void OnGridBindingStart(object sender, GridControllerArgs args) { var list = args.SourceCollection; if (list != null && list.Count > 0 && list[0] is Request) { int[] requestIds = new int[list.Count]; for (int i = 0; i < list.Count; i++) { requestIds[i] = ((IEntity)list[i]).ID.Value; } _votedByLoggedUserCache = Request.FilterAttachedToLoggedUser(requestIds); } }