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

  • Home
  • SEARCH
  • 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 8227311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:05:11+00:00 2026-06-07T16:05:11+00:00

I am using slick grid and using a subscribed function to get notification when

  • 0

I am using slick grid and using a subscribed function to get notification when a cell is edited

grid.onCellChange.subscribe(function (e,args) {


        console.log(args);

        var a =  data[args.row];
       // var b =  args.grid.getItem(args.row);
        var c = args.item;
        console.log(a);
      //  console.log(b);
        console.log(c);

        console.log("Field Edited:"+ cols[args.cell ].field);
        $.post('action_updaterow.php',{'args[]':c},function (data){
            alert(data);
        })

    })

both a and c show as empty arrays in the console, however (as per picture ) when I view args in console item is displayed as an empty array but the items are shown

enter image description here

What does it mean when an array is listed as empty but shows values. The real problem here is that if I pass a, c or args.item into my callback function teh php page doesn’t recieve any data.

UPDATE

It turns out I structured my data in the wrong way so it was being returned as an empty Array with properties for the data. This seems to not be understood well by anything – JSON, Jquery, console.log – I fixed the data structure to make each row an object and all is well.

  • 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-07T16:05:13+00:00Added an answer on June 7, 2026 at 4:05 pm

    It looks like the Array is indeed empty. You can give named properties to an Array just like you can to an Object. Which means that:

    console.log( item.CanPublish );  // "1"
    console.log( item.length );      // 0
    console.log( item[0] );          // undefined
    

    It is generally advised not to this, as it creates confusion. JavaScript has no such thing as “named arrays”. Try to stick to using either an Array or an Object.

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

Sidebar

Related Questions

This code slickgrid.onDblClick.subscribe(function(e){ var cell = slickgrid.getCellFromEvent(e); console.log(cell.row, cell.cell); }); prints 0, 0 if
I have a filter on slick grid header. When I hide a column using
How can I unselect all rows in a Slick Grid? I'm using RowSelectionModel and
I'm displaying records in a grid format from an ActiveRecord list using each_slice. What
I have a grid made using slickgrid on a html page. I want to
I am trying to add a row to a slick grid on my page
I'm using Slickgrid but I'd prefer not to use slick.model.js . How can I
I m using MVC Contrib grid in the application , i want to change
Im using the Wookmark jQuery grid layout for my website. https://github.com/GBKS/Wookmark-jQuery I need the
I'm using Slick Util's Texture class to load textures for lwjgl, but apparently that

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.