How to display single record per page with navigation buttons... First,Previous,Next,Last
How to display single record per page with navigation buttons... First,Previous,Next,Last
hercules
Posts: 21Questions: 9Answers: 0
Hi Friends,
I was wondering if I can use the DataTables plugin like a form to display single record per page with navigation buttons... First,Previous,Next,Last in iterating through a set of records. Thanks !
This question has accepted answers - jump to:
This discussion has been closed.
Answers
Hi @hercules ,
You can have a single record per page by setting
pageLength
to 1. And the navigation buttons can be customised withpagingType
, "full" is probably the one you want. See example here.Hope that helps,
Colin
Thank You So Much For Your Help. But I was wondering can I make the datable look like a form by showing the fields vertically arranged. I saw where this was done in asp.net using a grid control.
Have a look at this thread which discusses how you can use CSS to do that.
Allan
Thanks