Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

189
Views
Slickgrid: Make newly added columns same width as others

I have a Slickgrid with multiple columns. None of them have a width value, so they all automatically have equal widths.

I initiate the grid and, depending on the situation, will add more columns to the grid using grid.setColumns().

The grid adds the columns correctly, but they are less wide than all the other previously created columns.

enter image description here

As you can see, the "Stream" column is smaller than the others.

How can I set the newly added column's width equal to the other's width?

Edit: My Version is Slickgrid v2.3

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

If you want it to resize as it would when loading the grid without any defined width then you can call the following (which is the same as what the option "Force Fit Columns" would do but only once)

grid.autosizeColumns();

or if you want to provide a fixed width and see it applied in the grid, then you can call

let shouldReRender = true;
grid.reRenderColumns(shouldReRender);
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!