Quantcast
Channel: DataTables 1.9 — DataTables forums
Viewing all articles
Browse latest Browse all 1816

Reload Ajx Data

$
0
0
How do you reload the data after the table has been initialized? I was unable to find a method in the documentation or the forums.

Like, for example, when a user clicks on a button I would like to reload the data via ajax..... Here is my datatable:

	var user_list = jQuery('#user_list').dataTable( {
		"sPaginationType": "bootstrap",
		"oLanguage": {
			"sLengthMenu": "_MENU_ records per page"
		},
		"bProcessing": true,
		"bServerSide": true,
		"bStateSave": true,
		"bAutoWidth": false,
        "sAjaxSource": current_web_root + '?action=ajax|admin_user_list',
		"aoColumns": [
            null,
            null,
            null,
            null,
            null,
            null,
			null,
            null,
			 null,
            { "bSortable": false, "bSearchable": false }
        ]
	});

Thanks!

Viewing all articles
Browse latest Browse all 1816

Trending Articles