Hi, is there a way i can programtically access all existing events on a specific row? by row index?
Thanks.
Support Forum
Sure, by "row" do you mean only the visible events on the row or all events for that resource that have been loaded into the store? For the latter:
var resourceId = scheduler.store.getAt(someRowIndex).id;
var rowEvents = scheduler.eventStore.queryBy(function(ev) { return ev.get('ResourceId') === resourceId; });
var resourceId = scheduler.store.getAt(someRowIndex).id,
viewStart = scheduler.getStart(),
viewEnd = scheduler.getEnd();
var rowEvents = scheduler.eventStore.queryBy(function(ev) { return ev.get('ResourceId') === resourceId && Date.intersectSpans(ev.get('StartDate'), ev.get('EndDate'), viewStart, viewEnd); });