Reply To: How to remove some column’s sorting function in Advanced Tables

#10034246
Support
Keymaster

Hello, first thanks for your purchase.

You can do that by changing the code at “js/examples/examples.datatables.defauklt.js” to this new below:

(function($) {

	'use strict';

	var datatableInit = function() {

		$('#datatable-default').dataTable({
			dom: '<"row"<"col-lg-6"l><"col-lg-6"f>><"table-responsive"t>p',
			order: [],
			columnDefs: [
				{
					targets: 0, // 0 is the first column
					orderable: false
				}
			]
		});

	};

	$(function() {
		datatableInit();
	});

}).apply(this, [jQuery]);

* Note order and columnsDefs. 0 is the reference for first column.

Please try that and let us know if you need further assistance.

Kind Regards,

Rodrigo.