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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:52:01+00:00 2026-06-10T13:52:01+00:00

I am tasked with creating a dashboard interface in our ASP.NET MVC 3 web

  • 0

I am tasked with creating a dashboard interface in our ASP.NET MVC 3 web application. First I will list the features that are required for this project and then I will do my best to illustrate what I intend to create to accommodate all of these features.

Required Features

  • The dashboard will contain widgets (or tiles) that will be draggable within the dashboard interface.

  • When dragging widgets, the surrounding widgets will re-order themselves appropriately.

  • Widgets are not re-sizable or collapsible but they will be removable. The user will add widgets back through a menu if they desire.

  • The widgets must accommodate variable width browser windows. Vertical space is pretty much unlimited.

  • The widgets’ heights and widths will be in increments of 300 pixels, maxing out at 900 pixels. In other words, a widget could be: 300 x 300, 600 x 300, 300 x 900, 900 x 900, and so on.

What I plan to build

Here are a couple illustrations of what I hope to build.

The dimensions aren’t perfect but this shows a dashboard with 9 widgets on it. All widgets are snug and do their best to fill the width of the screen elegantly. However, the widgets do not have to form a perfect square or rectangle. Danglers are OK as pictured below.

Note how the widths and heights of the widgets are all in increments of 300 pixels, as noted in the requirements above. This should hopefully make it easier to do the math for re-ordering the tiles. Which brings me to my problem.

My Question

I have the concept understood but I am having trouble figuring out where to begin. I am not as proficient with math as I wish I was and I need some help getting pointed in the right direction.

How do I get from an array of widgets (of all shapes and sizes) that is sorted in no particular order, into a neatly laid out absolutely positioned grid of tiles that takes up space as elegantly as possible?

How do I get from this:

To this:

Or at least a similarly elegant layout. The tiles do not have to be in their exact places as pictured above. I just want them to play a perfect game of Tetris and fall into place without awkward gaps.


I need to take the width of the browser window into account and then somehow loop through the array of widgets and start adding them to some sort of virtual grid. I want it to look as elegant as I can make it.

Then, after solving how I order the widgets on the page after the initial page load I need to allow the user to move his/her widgets around and have the other widgets re-order themselves as neatly as possible to accommodate the moved widget’s new position. I also need an elegant way to re-order widgets if the browser is re-sized.

I’m not expecting full-blown solutions or implementations. I just need a push in the right direction I think. Perhaps, a simple brain storm description of the logic for looping through the widgets and what things to calculate to arrive at the best configuration.

  • 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-10T13:52:02+00:00Added an answer on June 10, 2026 at 1:52 pm

    After investigating jQuery Masonry, jQuery isotope, and even a custom block-filling algorithm, I stumbled upon another jQuery plugin known as jQuery Gridster that does exactly what I want. There are a few quirks with the plugin and it’s not very polished, but with a few tweaks I was able to use it effectively.

    Note: One of those quirks is the plugin’s API. When you try to dynamically remove items from the grid using the remove option in the plugin API it throws a whole bunch of errors. It’s some sort of race condition because it happens sporadically. The bug was probably missed because when you use the API to only remove one item at a time it works 99% of the time. If you remove more than one item in rapid succession (either by looping through and calling the API multiple times, or by passing the remove function a wrapped set with more than one element) then you’ll get a bunch of console errors.

    I had a need to remove all tiles from the grid and reload a new set of tiles. It was easier to just use jQuery to remove the element Gridster was invoked on and then call the plugin fresh from the beginning, passing it the new set of tiles.

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

Sidebar

Related Questions

Background: I've been tasked with converting an Access database application to ASP.Net C# MVC.
I was tasked with creating an SSO solution from an existing asp.net app to
Hello I have been tasked with creating a fairly complex web application in php,
I'm tasked with creating a Java Web Service for a .NET 2.0 client to
I've been tasked with creating an application that allows users the ability to enter
Recently I have been tasked with creating an application for a business that basically
I have been tasked with creating a program that will generate an amortization schedule.
I'm tasked with creating a website application that resembles a POS (Point-of-Sale) system's editing
I've been tasked with creating a WCF service that will query a db and
I've been tasked with creating some sort of service that will take any e-mail

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.