0

I am creating a table at runtime using jQuery. The table comes from JSON data. The issue is that I need to provide a fixed header to the table so that when I scroll it the header should not move. I know I can create 2 divs one for header only and other for table content. I can't do this since I need the columns to be resizable also. Is there any jQuery plugin or code available to do the same?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Gautam
  • 1,728
  • 8
  • 32
  • 67
  • 1
    First search and then ask - http://stackoverflow.com/questions/673153/html-table-with-fixed-headers http://fixedheadertable.com/. It is like 30 seconds of searching! And show some effort, not only "I need this ... I need that ...". We all need stuff. – Bakudan Nov 21 '12 at 08:29
  • @Bakudan I have already done the searching part..perhaps you need to read the question completely.. I did the fixed header part on my own.. the only issue is the require ment of resizing of columns with header being fixed...FIRST READ PROPERLY.. THEN TRY TO THINK WHAT EXACTLY DOES THE QUESTION SAYS... THEN COMMENT... – Gautam Nov 21 '12 at 08:43
  • 1
    You still need to show some effort. What have you tried? – Bill the Lizard Nov 21 '12 at 13:55
  • Well.. What I did was creating a table heading in a div and then creating the table in another. – Gautam Nov 22 '12 at 04:35

1 Answers1

4

Take a look at the jqFAQ.com link, this will help you to create table with fixed headers and resizeable columns.

Amar
  • 1,906
  • 2
  • 16
  • 26