Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9144919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:23:12+00:00 2026-06-17T10:23:12+00:00

I am using datatable for displaying data in the grid, everything works fine except

  • 0

I am using datatable for displaying data in the grid, everything works fine except for one issue (cosmetic issue).

When users go to end of page 1(now the scroll bar is at the end of the grid) and when they click any of the pagination buttons (next / previous / first / last), the scroll bar doesn’t go back to top instead it stays the same position where it was on the previous page. Is there a way to reset the scrollbar position?

EDIT: The scrollbar I referred here is datatable scroll bar (class:dataTables_scrollBody)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T10:23:13+00:00Added an answer on June 17, 2026 at 10:23 am

    I figured out a way to move the scroll bar to the top of datatables. Just need to add this to fndrawcallback function.. sharing the code below…..

    "fnDrawCallback": function(o) {
                        $('.dataTables_scrollBody').scrollTop(0);
                    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am displaying values from database table using h:datatable, one tupple is displaying in
I am using the JQuery DataTables plugin for displaying large sets of data. One
I am showing data in table format using dataTable in JSF page using JSF2.0.
I am using datatable and dialog on same page, i would like to apply
I am using datatable on page and using binding attribute to bind it to
using System; using System.Data; using System.Data.SqlClient; using System.Configuration; public partial class _Default : System.Web.UI.Page
I am opening an excel and displaying it in grid using Interop.Excel I want
I am having problems with displaying the selected item's data on a dialogue using
My home page is displaying images slideshow using jquery,all these images are retrieving from
We are using the .NET DataSet and DataTable classes to filter data. But we

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.