Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pages, Filters, Order dont working server-side #80

Open
fehsc opened this issue Feb 3, 2015 · 7 comments
Open

Pages, Filters, Order dont working server-side #80

fehsc opened this issue Feb 3, 2015 · 7 comments

Comments

@fehsc
Copy link

fehsc commented Feb 3, 2015

Order, Filters, dont working with serve-side. How do?

@hmrc87
Copy link

hmrc87 commented Mar 4, 2015

Same probleme here, using CI3 and Ignited-Datatables 2.0 it doesnt seem to work

@iMezied
Copy link

iMezied commented Mar 6, 2015

the same issue here with CI 2.2.1

@hmrc87
Copy link

hmrc87 commented Mar 6, 2015

Try adding the post attribute to your JavaScript code in the view like this

"ajax": {
"url":'job/dt_get_all_jobs',
"type": "POST"
},
Columns{

That worked for me

@iMezied
Copy link

iMezied commented Mar 6, 2015

awesome!
its work with me too
thanks @Hmarc187

@gabrielpaivadev
Copy link

Me does not work

$("#tabela_ecommerce").dataTable({
"processing": true,
"serverSide": true,
"deferRender": false,
"iDisplayLength": 4,
"iDisplayStart": 0,
"sServerMethod": "POST",
"sAjaxSource": "projeto/ajaxCarregarProdutos",
"fnServerData": function (sSource, aoData, fnCallback) {
$.ajax
({
"dataType": "json",
"type": "POST",
"url": sSource,
"data": aoData,
"success": fnCallback
});
},
"aoColumns": [
{"mData": "imagem_produto", "sClass": "text-center"},
{"mData": "codigo_produto", "sClass": "text-center", "bSearchable": true},
{"mData": "nome_produto", "bSearchable": true},
{"mData": "quantidade_produto", "sClass": "text-center"},
{"mData": "valor_produto"},
{"mData": "selecionar_produto", "sClass": "text-center"}
]
});

@baktistr
Copy link

baktistr commented Jul 1, 2015

for me, I added post attribute in my js. it just search/filter that doesnt work, everything else works fine.. it always give me error 500.. any idea?

@christianrd
Copy link

@baktistr I get this error to (error 500), I think this error is about sql script for where -> like it's doesn't specify the attribute in database... I don't know how I can fix it in datatable library CI

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants