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](https://secure.gravatar.com/avatar/4689f637f696857130845b906a9785ab/?default=https%3A%2F%2Fvanillicon.com%2F4689f637f696857130845b906a9785ab_200.png&rating=g&size=120)
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