开发者

Issue with pagination in Datatables implementation

开发者 https://www.devze.com 2023-04-08 20:17 出处:网络
I am having a small issue wit开发者_如何学编程h pagination. When implementing the \"four_button\" type, the table displays correctly (with correct pagination buttons) however clicking on any of the pa

I am having a small issue wit开发者_如何学编程h pagination. When implementing the "four_button" type, the table displays correctly (with correct pagination buttons) however clicking on any of the pagination buttons (Next, Previous, etc...) will throw an error of "fnCallbackDraw is not a function". Inspecting it further in Firebug, i see that fnCallbackDraw is a div (div.dataTables_paginate). Looking within the code, I do not see where this value is being assigned??!! To make matters more interesting the other pagination implementation of "full_numbers" works correctly.

Has anyone else come across this issue? Any help in this matter will be greatly appreciated.


As far as I have used the datatable plugin, there are only two options for pagination namely "full_numbers" and "two_button". I don't think "four_button" type exists even in the latest plugin as I have been using version "1.8.2". Try using either of "full_numbers" or "two_button" types.

Hope this Helps!!


There is no fnCallbackDraw. It is fnDrawCallback. Without seeing your DT initialization code, I'm guessing it's just a syntax error. ;-)

If I'm wrong, post back with a copy of your initialization object and we'll see if there's anything else going on there.

0

精彩评论

暂无评论...
验证码 换一张
取 消