How to: Get [,]Array of 3th column where last column is checked

How to: Get [,]Array of 3th column where last column is checked

PutjesPutjes Posts: 8Questions: 2Answers: 0

Hi,

I have a a datatables on an usercontrol

@Inherits WebViewPage(Of System.Data.DataTable)

End If Next Next
@Resources.BlockedReport.OrganisationNameColumnLabel @Resources.BlockedReport.OrganisationCityColumnLabel @Resources.BlockedReport.UserColumnLabel
@item
var oTable //var aTableData $(document).ready(function () { oTable = $('#reportblockingusergrid').dataTable({ "order": [[1, "asc"]], "columnDefs": [ { "targets": [0, 3], "visible": false, "searchable": false } ], "language": { "emptyTable": "@Resources.ReportGrid.emptyTable", "info": "@Resources.ReportGrid.info", "infoEmpty": "@Resources.ReportGrid.infoEmpty", "infoFiltered": "@Resources.ReportGrid.infoFiltered", "infoPostFix": "@Resources.ReportGrid.infoPostFix", "thousands": "@Resources.ReportGrid.thousands", "lengthMenu": "@Resources.ReportGrid.lengthMenu", "loadingRecords": "@Resources.ReportGrid.loadingRecords", "processing": "@Resources.ReportGrid.processing", "search": "@Resources.ReportGrid.search", "zeroRecords": "@Resources.ReportGrid.zeroRecords", "paginate": { "first": "@Resources.ReportGrid.PageFirst", "last": "@Resources.ReportGrid.PageLast", "next": "@Resources.ReportGrid.PageNext", "previous": "@Resources.ReportGrid.PagePrevious" } }, "searching": true, "aLengthMenu": [[25, 50, 100, -1], [25, 50, 100, "@Resources.ReportGrid.SelectAllButtonText"]], }); $('#toggleAllCheckBox').click(function () { if ($('#toggleAllCheckBox').is(':checked')) { $('.toggleAllCheckBox').prop('checked', 'checked'); } else { $('.toggleAllCheckBox').removeAttr('checked'); } }); $('#saveChangesButton').click(function () { var $rowNode = $('#reportblockingusergrid').find('tbody tr:eq(0)').get(0); var rowData = oTable.fnGetData($rowNode); //var rowData = oTable.fnGetData(); alert(rowData); if (rowData != null || rowData != '') { $("#guidsToBlock").val(rowData); saveChangesButton_Click(); } }); });

How to put all values from the 3th column that have the #AllCheckBox checked as comma separated string in the #guidsToBlock control...

Thanks,
Ronald

This discussion has been closed.