Checkbox mayham

Checkbox mayham

codilxcodilx Posts: 1Questions: 0Answers: 0
edited September 2010 in General
Hi there,

I feel in love with this plugin :) I found it to be the most visually pleasing and useful of the others I've seen so far.

BUT. I'll try to explain my problem.

I have a list of emails that I'm loading into the DataTable. Each row has a checkbox, email, delete button and a select dropdown to assign the email to a group.

The issue I'm facing, is that in the .. bit, I have a checkbox, and I'm trying to create a function that checks ALL the emails in the list. I've always used this function for selecting all checkboxes:

[code]$('.check_all').click(function() {
$(this).parents('form').find('input:checkbox').attr('checked', $(this).is(':checked'));
});[/code]

It works, but the problem is that when I click the checkbox, the table get's sorted and I can't seem to stop it, and also the emails that weren't on that page (I'm using pagination) don't get checked, only the ones visible when the checkbox was clicked. So that's my first issue.

Another thing I'm trying to do, but as I'm new to JavaScript & jQuery I can't pull it off, is that as you understand, I need the checkboxes for a specific function :) I'm trying to apply the group thing I mentioned earlier, to all the emails that are checked. Imagine if you have let's say 200 emails in the table, and you want to assign them to specific groups, it's much easier to check the ones you want, and have an additional dropdown field below the table, that once modified, the checked emails dropdowns are instantly changed to that value.

And also, is it possible to delete the rows on the fly?

I hope I was clear enough, and I hope someone will be willing to help me out with this.

Thanks again :)
This discussion has been closed.