Skip to content

Group names with a common prefix are collapsed and expanded incorrectly #90

Open
@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. Use a table with some groupings that start with the same prefix (e.g. 
"Colors", "Colors Alt", "Colors Additional").
2. Click one of the columns to expand the group.
3. Notice all the columns with names starting with "Colors" are expanded. 

What is the expected output? What do you see instead?
Only the group clicked on should be expanded

What version of the product are you using? On what operating system?
DataTables.RowGrouping  1.2.9
Mac OS X 10.10
Chrome

Please provide any additional information below.
in the two functions fnExpandGroup() and fnCollapseGroup() the group selectors 
are as follows:
$("td[data-group=^'" + sGroup + "']").removeClass("expanded-group");
$("td[data-group=^'" + sGroup + "']").addClass("collapsed-group");
Our fix was to change these to:
$("td[data-group='" + sGroup + "']").removeClass("expanded-group");
$("td[data-group='" + sGroup + "']").addClass("collapsed-group");

Original issue reported on code.google.com by [email protected] on 10 Mar 2015 at 2:11

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions