ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

getIntersectionValueFiltered does not work correctly with filter params

Open Atmos206 opened this issue 10 years ago • 1 comments

Method getIntersectionValueFiltered of class GridRowColumn does not work properly with filters using params, such as date:'MM/dd/yyyy'.

The regex written to parse the filter and it's parameters does not remove the single quotes. The end result is that the parameter for the filter is returned as the value, instead of the value post filtering.

For example, if the cellFilter is set to date:'MM/dd/yyyy', the value returned from getIntersectionValueFiltered is MM/dd/yyyy instead of a filtered date.

I am using GridRowColumn class and getIntersectionValueFiltered within a custom directive modifying the behavior of UI-Grid.

Atmos206 avatar Jun 20 '16 20:06 Atmos206

Closing this, ss grid.getCellDisplayValue should be used and getIntersectionValueFilter was removed

Atmos206 avatar Jun 28 '16 19:06 Atmos206