Hi Dan,
I've encoutered a strange behaviour of the scheduler that i'll try to explain at my best.
The scheduler is configured in tree mode with parent disabled.
I've implemented an ajax massive delete function that passes parameters (date range and resource ids) to the server, performs the deletion and than return to the client. If all went good it runs a dps.commandCallback("refresh") that actually is an Update(CallBackUpdateType.Full) on the server side.
I have implemented also this function:
dps.onAfterRender = function (args)
{
if (args.isCallBack && args.data != undefined)
{
Object.keys(args.data).forEach(function (key)
{
var parts = key.split("|");
var cells = dps.cells.find(parts[1], parts[0]);
cells.html(args.data[key]);
});
dps.update();
}
}
The key is resourceId concatenated with the date so I can update the summary html in the parent resource so I can easily get the right cell to update.
If I drag&drop an event it works like a charm but if I drag&drop after calling that massive function, than the onAfterRender function updates also cells that aren't in the returning object with the first parent html.
In the attached image you can see the green circle with correct totals, and the red circles with the wrong ones. Those cells are actully empty, but the function I don't know why updates them.
I also noticed that the Row Header Hiding icon disappears after the drag&drop.
If you need more details tell me.
Thank you.