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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:34:37+00:00 2026-06-07T01:34:37+00:00

I am having issues creating multiple independent SlickGrid grids from the same object (that

  • 0

I am having issues creating multiple independent SlickGrid grids from the same object (that is modifications to one grid shouldn’t affect the other grids and vice versa).

Here is the code

var data1 = [];
data1[0] = { myfield: "This is data1" };
// setting data2, see below
var grid1 = new Slick.Grid("#grid1", data1, columns, options);
var grid2 = new Slick.Grid("#grid2", data2, columns, options);

Setting data2

I’ve tried many things:
–var data2 = data1: when doing so, whenever I modify one grid, the other grid gets updated accordingly and vice versa, which I understand is because of this.

–var data2 = jQuery.extend(true, {}, data1) or var data2 = jQuery.extend({}, data1);: in this case SlickGrid simply fails to create the grid for data2 (the grid is empty and its height extends for 4000000px, no warnings/errors/exceptions are thrown) although the object itself seems to be properly created (I can alert it and the its values are good).

How can I create 2 independent grids from the same object (initially) with SlickGrid?

  • 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-07T01:34:39+00:00Added an answer on June 7, 2026 at 1:34 am

    jQuery.extend() works on an object. Here, you have to create a second array and clone every individual item from the first array separately.

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

Sidebar

Related Questions

I'm having issues with creating an AIR file from an Adobe AIR HTML/JavaScript project.
I'm having a few issues with creating an object within an object, it's syntax
I'm having issues with data persisting inside of multiple instances of objects I'm creating.
I'm having issues creating a statement to delete records with a join on multiple
Having issues referencing $(this) from within a the nested ajax 'success' function... I know
I'm having issues with a bit of code that I am writing in C#.
I am having some issues creating a setup file for my Outlook 2007 add-in.
I am having issues creating, and understanding how to create a core data model
I am having issues creating a composite key made out of foreign keys in
I'm having issues creating a simple join table (associative table, etc. whatever your flavor

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.