Skip to content

Always assumed that first row in THEAD contains the column names #2

@billdozr

Description

@billdozr

I have a table that looks a lot like jqGrid table. So my thead has two rows. First row has a Title that colspan's number of items in the second row of the thead. So the second row in thead contains the actual column names.

I tried changing the line: var thead_tr_first = $('thead tr:first',tb); to var thead_tr_first = $('thead tr:first',tb).next(); just as a test and that sort of worked. (By sort of, I mean it don't align the inner table quite right.)

My suggestion is to allow an option to be passed through during initialization that will define which row in the head is the actual row that contains the column names. Fallback would be first row as it currently asumes.

Nice work btw.
-Alen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions