Hiding Specific Rows from being searched

Hiding Specific Rows from being searched

tbone587tbone587 Posts: 18Questions: 0Answers: 0
edited September 2012 in General
I have a series of checkboxes that indicate a group name. When I enable the checkbox, I want the the data for that pariticular group to become viewable in the data table. In otherwords, if I click a checkbox inicating "Florida" I only want the rows containing "Florida" as the group name column to be visible/searchable. Is this possible with the built in mechanisms?

Replies

  • caesaram85caesaram85 Posts: 12Questions: 0Answers: 0
    aoColumDefs: { "bSearchable": false, "aTargets": [index_of_row_uwanna_dismiss_fromfilter] }
  • tbone587tbone587 Posts: 18Questions: 0Answers: 0
    caesaram85, How would I execute that command after the table initialization process? Also, does it make the row containing that data not searchable and not visible, or just not searchable?
  • tbone587tbone587 Posts: 18Questions: 0Answers: 0
    Can anyone else chime in on this? What is the easiest way to programatically hide table rows at any point in time, using my datatable object?
  • tbone587tbone587 Posts: 18Questions: 0Answers: 0
    They have the link below for hiding columns, but how can I hide entire rows?
  • tbone587tbone587 Posts: 18Questions: 0Answers: 0
    I figured out a way to hide the table rows, but The item is still searchable and the total count is not updated atm.. Does anyone here know how to update the search results as well and make it not searchable?

    [code]
    var tableRows = userDataTableList.$('tr');
    $("#testbutton").click(function(){
    tableRows.each(function(){

    if ($(this).hasClass("hidethis"))
    {
    $(this).hide();
    }
    });

    return false;
    });

    [/code]
This discussion has been closed.