Selecting Rows with Fixed Columns
Selecting Rows with Fixed Columns
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.
[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.
This discussion has been closed.
Replies
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
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
Has anyone had any luck on this? I've run into the same issue.
Thanks,
Ted
Gust
Did you succeed to resolve this problem, cause I'm in the same situation.
Thanks.
Micka