Opened 8 years ago

Closed 7 years ago

#15266 closed defect (patchwelcome)

EnhancedGrid filter plugin not functioning properly

Reported by: d.champatiray Owned by: Evan
Priority: undecided Milestone: tbd
Component: DojoX Grid Version: 1.7.2
Keywords: Cc:
Blocked By: Blocking:

Description

Hi,

The FilterStatusTip? (Tooltip shown when we hover over the filter bar) is not functioning properly after using the "setFilter" method of EnhancedGrid? object to set filters programmatically. Though the applied filters show up in the tooltip, the icon (red colored 'X') to remove a filter does not function as expected. Upon clicking the icon an error "cc.selectedChildWidget is undefined" is thrown and the filter is not removed from the grid.

Upon tracing the back into the source, I discovered that the error is thrown from the "removeCriteriaBoxes" method of "FilterDefDialog?".

I'm using the following code to set 2 filters on the stock enhanced grid example provided in the 1.7.2 source distribution (Path : /dojox/grid/tests/enhanced/test_enhanced_grid_filter.html) :

var grid = dijit.byId('grid');
grid.setFilter([{
    type : 'number',
    column : 3,
    condition : 'equalTo',
    value : 1992
},
{
    type : 'string',
    column : 4,
    condition : 'contains',
    value : 'Down'
}
], 'logicall');

Change History (4)

comment:1 Changed 8 years ago by d.champatiray

Please change the component type to "DojoX Grid" from "General".

comment:2 Changed 8 years ago by bill

Component: GeneralDojoX Grid
Owner: set to Evan

comment:3 Changed 7 years ago by bill

DojoX Grid and EnhancedGrid are deprecated in favor of dgrid and gridx.

You should upgrade your code to use one of those two grids.

We will consider patches to the old DojoX Grid code though.

comment:4 Changed 7 years ago by bill

Resolution: patchwelcome
Status: newclosed
Note: See TracTickets for help on using tickets.