Hello jqwidgets-team,
how is it possible to find out the resourceId from the current selection/cell in the cellClick event?
The combination by cellClick and getSelection doesn’t work,
because the return from getSelection containing the values from the second last selection but not the current selection.
$("#jqxScheduler").on('cellClick', function (event) {
var selection = $('#jqxScheduler').jqxScheduler('getSelection');
if(selection !== null){
var resourceId = selection.resourceId;
var from = selection.from;
var to = selection.to;
console.log("resource: "resourceId + " from: " + from.toString() + " to: " + to.toString());
}
});
In other events like contextMenuCreate works $(‘#jqxScheduler’).jqxScheduler(‘getSelection’); like expected.