can i used iTotalRecords in render function?
can i used iTotalRecords in render function?
KimJuHwan
Posts: 8Questions: 2Answers: 0
Controller
map.put("data", list);
map.put("iTotalRecords", totCnt);
map.put("iTotalDisplayRecords", totCnt);
ModelAndView modelNView = new ModelAndView(ajaxMainView,map);
return modelNView;
script
columns:[
{'data':'rnum',
render:function(data,type,row){
return data
}
}
]
I want to use iTotalRecords in render function...
This discussion has been closed.
Answers
Hi @KimJuHwan ,
Yep, you can get the last returned JSON with
ajax.json()
. Alternatively, you could callpage.info()
which also has this information, plus other properties about the table.Cheers,
Colin
can i use ajax.json() in render function ??
but ...
oh!! thank you.
Resolved.