1
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 Y time can be dragged to any other column of X, but when making the change, I need to perform a subtraction account (x-y), there’s the problem.
I managed to define an event "Event.Dropped", Redips, that always to DROPPAR a div in a td he 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 td where the DIV was dropped, because there I will be able to capture the two DIVS, both the existing one (X), and droppada (Y), make the calculations and replace the values.
Does anyone know a solution? I don’t necessarily need a Redips solution, because I’m using it all together with . NET, so a solution . NET would also help. Vlw.
You want to take the value of td, not the id of the element you are including?
– MarceloBoni
exactly, because td contains the value of the two DIV X and Y.
– Flavio Luiz