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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:32:30+00:00 2026-06-10T02:32:30+00:00

When a Slickgrid is added to a table-cell styled div , the grid becomes

  • 0

When a Slickgrid is added to a table-cell styled div, the grid becomes excessively wide unless a maximum width is specified for that div. The grid also seems to gain a phantom column to the right.

Is it possible to cause Slickgrid to only occupy necessary space in that type of layout?

http://jsfiddle.net/ericjohannsen/uMQH2/3/

UPDATE

I noticed the following HTML generated

<div class="slick-header-columns" style="left: -1000px; width: 2978px;" unselectable="on">

The width is being explicitly set to a value that is way too large, even given that the left if offset -1000px.

  • 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-10T02:32:32+00:00Added an answer on June 10, 2026 at 2:32 am

    I’m still hoping for a proper solution, but in the mean time I was able to work around the problem by including the following code after rendering the grid

        grid.render();
    
        // Hack to fix grid width issue http://stackoverflow.com/q/12032796/141172 
        var cols = grid.getColumns();
        var numCols = cols.length;
        var gridW = 0;
        for (var i=0; i<numCols; i++) {
            gridW += cols[i].width;
        }
    
        $('#gc').width(gridW); // gc is the ID of the div used for SlickGrid
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Some cells in my SlickGrid table have myClass class. I added a tooltip for
The SlickGrid supports editors for a cell that can be configured to be displayed
When a Slickgrid is contained in a div with fixed width and a horizontal
I have a grid made using slickgrid on a html page. I want to
This code slickgrid.onDblClick.subscribe(function(e){ var cell = slickgrid.getCellFromEvent(e); console.log(cell.row, cell.cell); }); prints 0, 0 if
I'm trying to remove the horizontal cell borders in SlickGrid. I'm trying this: var
Is it possible to make the first column of a SlickGrid fixed? So that
Slickgrid's column formatters return html to the grid object, so basically there's no way
I am aware that SlickGrid will modify the array that is assigned to the
What method do I use for SlickGrid to get the cell contents? For example:

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.