I have an application that generates a gridView (ASP.NET) of information and in each column I can have 2 values. One of these values is the total working time (x) of a person for a specific date, and the other value is the working time (y) already planned for the person. The time Y can be dragged to any other column of X, but when making the change, I need to perform a subtraction count (x-y), so that's the problem.
I was able to set an event "event.dropped" from Redips, which always to DROPPAR a div on a td it sends an alert ("test"):
redipsInit = function () {
var rd = REDIPS.drag,
msg = document.getElementById('message');
rd.style.borderDisabled = 'solid';
rd.style.opacityDisabled = 60;
rd.init();
rd.event.dropped = function () {
var teste = 'Dropped';
alert(teste);
};
};
I need to somehow capture the value of the td where the DIV was dropped, because I will be able to capture both the existing (X) and the droppada (Y) DIVS, do the calculations and replace the values .
Does anyone know a solution? I do not necessarily need a Redips solution, because I'm using it all together with .NET, so a .NET solution would also help. Vlw.