Selecting Rows with Fixed Columns

Selecting Rows with Fixed Columns

debeerdebeer Posts: 11Questions: 1Answers: 0
edited May 2011 in General
I am using the code for selecting single rows given in the examples:
[code]/* Add a click handler to the rows - this could be used as a callback */
$("#hookan_groups tr").click(function(event) {
$(oTable.fnSettings().aoData).each(function (){
$(this.nTr).removeClass("row_selected");
});
$(event.target.parentNode).addClass("row_selected");
});[/code]

When selecting a row, this code works as specified for the main table, but does not highlight the row in the fixed column. I would appreciate some help with how to highlight the row in the fixed column as well - sorry my js skills are crap.

Thank you Allen for making this wonderful tool available.

Replies

  • grant.leesgrant.lees Posts: 2Questions: 0Answers: 0
    Hi Allen,

    I am looking into DataTables as well, and I am trying to solve the same problem...
    I am trying to build a Datatable that supports dynamic column freezing and row highlighting within the frozen table and scrolling table.
    Can you you please advise an approach for this that you would recommend?

    Thanks
    Grant
  • grant.leesgrant.lees Posts: 2Questions: 0Answers: 0
    Hi Allen,

    Found your example in advanced_init/highlight.html so thanks for providing that.

    Just about to do the dynamic column freeze now. I guess it will be something along the line of the footer_callback?

    Thanks
    Grant
  • tedkalawtedkalaw Posts: 12Questions: 0Answers: 0
    Hey guys,

    Has anyone had any luck on this? I've run into the same issue.

    Thanks,
    Ted
  • GustGust Posts: 17Questions: 0Answers: 0
    Same problem... The API nor the CSS works... I guess we should make a dedicated function that will get the paired table row in both tables...

    Gust
  • MickaMicka Posts: 2Questions: 0Answers: 0
    Hi guys,

    Did you succeed to resolve this problem, cause I'm in the same situation.

    Thanks.
    Micka
This discussion has been closed.