Quantcast
Channel: Free community support — DataTables forums
Viewing all articles
Browse latest Browse all 35272

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

$
0
0

Hi,

I have a a datatables on an usercontrol

@Inherits WebViewPage(Of System.Data.DataTable)

@For Each row As System.Data.DataRow In Model.Rows @@For Each item As Object In row.ItemArray Dim bVar As Boolean If Boolean.TryParse(item.ToString(), bVar) Then @ Else @@item End If Next Next
@Resources.BlockedReport.OrganisationNameColumnLabel @Resources.BlockedReport.OrganisationCityColumnLabel @Resources.BlockedReport.UserColumnLabel
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


Viewing all articles
Browse latest Browse all 35272

Trending Articles