• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How do they write a complex datagrid component?

 
Bartender
Posts: 1357
39
IBM DB2 Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry for this silly question, but I have always wondered how complex and powerful web datagrid components are written. I mean, basic HTML table is rather simple, and seems aeons away from datagrid components allowing column resizing, column reordering, grouping and so on...I can't figure out how it would be possible -even with CSS and tons of JavaScript - achieve something like modern web datagrids, starting from a fixed table.My guess is that the most flexible HTML component to start from is div. If a table is a collection of cells, each of them may be represented by a div, which in turn may contain a basic HTML component - input, label image and so on.in this perspective, a column is a group of cells ( a div with other divs inside) and so on.Of course mine is a speculation, don't know how much wrong. Can anyone help me ?
 
Bartender
Posts: 1810
28
jQuery Netbeans IDE Eclipse IDE Firefox Browser MySQL Database Chrome Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Take a look at DataTables. It's a jQuery plugin that makes the nicest tables you can imagine. It also has additional plugins for things like in-cell editing.

I won't say that you'll understand the source code; it's some powerful code, but if you are really interested in how this stuff is done, it's a good starting place.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And yes, it's all just HTML, CSS and JavaScript.
 
Claude Moore
Bartender
Posts: 1357
39
IBM DB2 Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your answers... I had no doubt that foundation of datagrid component is HTML+css+javascript, I just wondering if it may be a correct approach (at least, conceptually) to use divs as building blocks.
 
J. Kevin Robbins
Bartender
Posts: 1810
28
jQuery Netbeans IDE Eclipse IDE Firefox Browser MySQL Database Chrome Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Absolutely. If you set up a simple DataTables page and examine the resulting table, you'll see many divs within divs. In fact, you could just look at the examples on the site.
 
When you have exhausted all possibilities, remember this: you haven't - Edison. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic