SlickGrid icon indicating copy to clipboard operation
SlickGrid copied to clipboard

Slickgrid GetItemMetadata function refers only to the last item

Open mpgr04 opened this issue 5 years ago • 2 comments

I am trying to change the style of several rows with the following code block:

DV.getItemMetadata = function (row)
                {
                    let description = this.getItem(row).Description;

                    if (description != null)
                    {
                        return {
                            cssClasses: 'notify'
                        };
                    }
                    return null;
                }

Here I can see that this is done correctly for all elements, but only the last element is colored.

StackOverflow could not help me here so far

mpgr04 avatar Dec 10 '20 13:12 mpgr04

This is a question for StackOverflow, can you post a link?

6pac avatar Dec 10 '20 14:12 6pac

He just created it, here's the SO question

ghiscoding avatar Dec 11 '20 14:12 ghiscoding

closing since this was asked on Stack Overflow and an answer was posted as well, refer to Example - Colspan for demo

ghiscoding avatar May 12 '23 15:05 ghiscoding