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 7901565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:15:14+00:00 2026-06-03T09:15:14+00:00

I am an application development intern. I’m making an application using ASP.NET MVC3 that

  • 0

I am an application development intern. I’m making an application using ASP.NET MVC3 that displays in boxes various projects the company using it is working on. These boxes are created in a table using a foreach loop.

    <div class= "row">
       @foreach (var item in Model)
       {
       @Html.Action("Client", new { controller = "Dashboard", Client = item })      
       } 
    </div>

I want these boxes to automatically scroll down if there is an overflow. This appears to be the function that I would like to use:

    function pageScroll() {
       window.scrollBy(0,50); // horizontal and vertical scroll increments
       scrolldelay = setTimeout('pageScroll()',100); // scrolls every 100 milliseconds
    }

How do I apply this function to the boxes being created in the foreach loop?

EDIT:
Using Timothy-Strimple’s advice, I used a Jquery plugin called scrollTo() to create this:

for (d = 0; d < 52; d) {

   $(".dashboard-well").scrollTo('100%', 10000).delay(2000);
   $(".dashboard-well").scrollTo('0%', 10000).delay(2000);
   d++;
 }

Now the div I was looking at, when overflowed, will scroll down, then back up 5x.

  • 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-03T09:15:16+00:00Added an answer on June 3, 2026 at 9:15 am

    I’m not quite sure I understand what you’re trying to do. If you want to set a div to overflow: scroll, and then scroll to the bottom of it, that’s pretty straight forward with jQuery. I have done something like that on my sample chat app where the page will scroll to the bottom every time there is a new message. It looks like this:

    $('#messages').scrollTop($('#messages')[0].scrollHeight);

    So what you can do is after you’ve created all of your rows, set scrollTop on the element like I have done above, and set it to the scrollHeight and that will put the scrollbar at the bottom of the section.

    If that is not what you are asking, please update your question or post a comment so I can update my answer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on an ASP.Net web application that must print dynamically created labels
I heard that C# is a rapid application development (RAD) language. Even after reading
I am new to iPhone application development. In the application that I am developing
I'm currently working on a web application development. Our company methodology is to work
I am new to iPhone Application Development , I am using XCode 4.2 with
Hi there Im new to mobile application development. I had developed Android apps using
I'm hosting my REST services by an ASP.NET application on Windows Azure. It's working
I am new to iPhone application development so that i want to learn cocoa
I am new to window phone application development. My client require that our game
I am new in iPhone application development and currently working on .net (C#). Please

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.