Replies
Hi Troy,
I'm pretty sure there's a way I can do what I'm trying to do. It's just that I'm not sure how to handle it.
Take a look at this line of code : var rowArray = $("#GridContactToBind").igGridSelection("selectedRows");
Now, rowArray should have the data from all rows checked. At this point I could try to run a for loop to push the textContent in my ContactToBind values.
Like this :
$("#PrimaryKey").val(rowArray[index].element[0].cells[1].textContent);
$("#ContactToBind_Numcon").val(rowArray[index].element[0].cells[1].textContent);
$("#ContactToBind_FullName").val(rowArray[index].element[0].cells[2].textContent + ' ' + rowArray[index].element[0].cells[3].textContent);
…
But at this point, I don't know what to do exactly, how to push my form after each elements in rowArray.
I don't know if that gives you a little more information to help me out.
Sincerely,
Guillaume Longtin
Hi Troy,
Let me try to elaborate a little more for what I want to be able to do exactly. As you were saying, I want to be able to add the data from all rows that are checked in a row array as a batch. That said, let's say I checked three rows. When I press the 'OK' button, it should store the information from all three rows in my array.
If all succeed, my array should have three 'elements'. For example, array[0] would contain the data from the first row that is checked. This would allow me to access each cells and store the 'textContent' from them in 'ContactToBind' which is what I'm using to store each cell information at the moment.
I hope that clears it up a little bit !
Sorry for my late answer,
Guillaume Longtin