0

On my current project I need to add the following functionality to tables:

  • Freezing table header
  • Freezing one or more columns on the left
  • Ability to re-size columns

We are using RichFaces and jQuery. I have searched for jQuery plugins, but each of them lacks at least one of these features. Could anyone advise a jQuery plugin that provides all of these features out of the box?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
  • When you say "Freezing header row", do you mean freezing the header of the table or freezing the 1st row apart from the header? – Konstant Sep 28 '12 at 11:20
  • I mean "freezing the header of the table" – Sergei Yaroshevich Sep 28 '12 at 11:21
  • http://trirand.com/blog/jqgrid/jqgrid.html – Konstant Sep 28 '12 at 11:21
  • Thanks. But jqGrid requires specifying colmodel for each table and I since I have huge amount of tables and columns in them and I am limited in time, I would like a plugin that does not require configuration of metadata for columns. Any suggestion?. – Sergei Yaroshevich Sep 28 '12 at 11:29
  • hmmm.. if you have a backend or MVC architecture, you can dynamically create the colModel in your template. If its a static page, why not just write a small script that generates the colModel codes. Just a random thought. I do not have any other suggestion :| (http://stackoverflow.com/questions/2277962/jqgrid-and-dynamic-column-binding for reference) – Konstant Sep 28 '12 at 11:33

1 Answers1

1

I think jqGrid covers all of these required features.

Please see the following demos for each of the feature

  1. Freeze header - True scrolling rows
  2. Freeze columns - Frozen columns
  3. Re-size columns - This feature is present by default but you can always use make them fixed width columns if required. Documentation is pretty good.
Konstant
  • 2,179
  • 16
  • 32
  • 1
    Thanks. But jqGrid requires specifying colmodel for each table and I since I have huge amount of tables and columns in them and I am limited in time, I would like a plugin that does not require configuration of metadata for columns. Any suggestion? – Sergei Yaroshevich Sep 28 '12 at 11:32