Hello!
Is there some javascript code I can use at the end of a mass action snippet to deselect selected rows on a table? This is so that the process can be repeated using a different mass action without having to deselect the records in between.
Thanks for the help!
Page 1 / 1
Hi Louis,
Here’s a basic Mass Action Snippet that will alert the Names of the selected Rows, then unselect the selected Items:
var params = argumentst0], <br> list = params.list,<br> selectedItems = list.getSelectedItems(),<br> $ = skuid.$;<br>var rowNames = $.map(selectedItems,function(item){return item.row.Name;});<br>alert(rowNames.join('
'));<br>$.each(selectedItems,function(i,item){<br> item.selected = false;<br>});<br>list.render({<br> doNotCache:true<br>});
Thanks Zach! Worked a treat. Have a good weekend!
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.