maxdisplayeditems in withpaging method not working

Jan 15, 2015 at 1:23 PM
Hi,
I am using WithPaging method like this: 
.WithPaging(12,5)

but it is displaying all pager links instead of only 5.