check this
http://jsfiddle.net/vngh1tj7/
I used your html but few rows and few checkboxs in dialog. Not all. Even
if i use all rows in table and checkboxes then also it will work.
Its doing below things.
1. When dialog get opened, it sets the same row 1st column value as title.
2. when you check some checkbox and click save, it populated a string
with space and comma seperated string. I used space and comma because
your checkbox value contains comma as well.
3. It put the comma separated string in same row 3rd column.
4. in dialog all checkbox get unchecked so when you click on any button
all checkboxs will come unchecked.
5. If a row has any value in 3rd column and you clicked on same
row's button then it will open the dialog with all checkbox selected
which values presents in 3rd row of that column.
I use same html structure you have but i removed unnecessary class and property.
Now you need to change the script if you change anything in html. Also i
used a fake class for all buttons which opens the dialog. You can use
any other call as i need a selector.