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

herculeshercules 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:

Answers

  • colincolin Posts: 15,142Questions: 1Answers: 2,586
    Answer ✓

    Hi @hercules ,

    You can have a single record per page by setting pageLength to 1. And the navigation buttons can be customised with pagingType, "full" is probably the one you want. See example here.

    Hope that helps,

    Colin

  • herculeshercules Posts: 21Questions: 9Answers: 0

    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.

  • allanallan Posts: 61,667Questions: 1Answers: 10,096 Site admin
    Answer ✓

    Have a look at this thread which discusses how you can use CSS to do that.

    Allan

  • herculeshercules Posts: 21Questions: 9Answers: 0

    Thanks

This discussion has been closed.