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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:06:56+00:00 2026-05-27T18:06:56+00:00

I’m a new to slickgrid, and not sure how to display the data as

  • 0

I’m a new to slickgrid, and not sure how to display the data as attached with the screenshot below. I read grouping example, but it’s grouped by an existing column and not sortable. In the example, each category has multiple items with prices, and it’s sorted by Category name and price.

Any help with displaying the data so that category is sortable is greatly appreciated.

Thanks so much.

Lanny

enter image description here

  • 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-05-27T18:06:57+00:00Added an answer on May 27, 2026 at 6:06 pm

    After spending more time with the examples, I learned that I can define what I want to display in columns obj. In data obj, I can have as many properties as I want.

    In the code example, the first column is the actual product, but the name is Category, it’s kind of confusing but it’s a business decision. After I added all the data, I added the category name in product column and set colspan to “*” before each group of products, so it expands to all columns. I’m sure that SlickGrid DataView group has a better solution than this, right now I haven’t gotten that far. If someone can elaborate more on how to use DataView, I appreciate it.

    code example: http://jsbin.com/efujox/2/

    columns = [
        {id:"product", name:"Category", field:"product"},
        {id:"price", name:"Price", field:"price"},
        {id:"date", name:"Date", field:"date"}
    ];
    
    data =[
        {id: 'p1', product: 'Item 332', category:'Category XBC', price: 5.99, date: '6/19/11'},
        {id: 'p2', product: 'Item 12', category:'Category XBC', price: 6.99, date: '8/20/11'},
        {id: 'p3', product: 'Item nVV', category:'Category CXV', price: 4.99, date: '5/11/12'},
        {id: 'p4', product: 'Item dcA', category:'Category CXV', price: 9.42, date: '8/11/11'}
    ];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to construct a data frame in an Rcpp function, but when I
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I have a French site that I want to parse, but am running into
In my XML file chapters tag has more chapter tag.i need to display chapters

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.