Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

[bug] ListGrid filter rendering issues when there are items with CanvasItem.

$
0
0
Hi, I've noticed that my component which extends CanvasItem and it has a canFilter: false;

canvas will appear in [0,0] coordinates of filter.



You can try to add a field for example like this into ListGrid with filter:

Code:

                    {
                        title: "Date time",
                        name: "datetime",
                        length: 50,
                        type: "date",
                        canFilter: false,
                        filterEditorProperties: {
                            editorType: "DateRangeItem"
                        }
                    },

so i cannot disable filtering for these columns (I've added new type and registered new editorType).


Bug is in CanvasItem.placeCanvas():

Code:

        var containerHandle = containerWidget.getHandle(),
            spacerParent = isc.Element.get(this.getID() + "_spacerParent");


        if (isc.Browser.isIE && !isc.Browser.isStrict && isc.Browser.version >= 9) {
            spacerParent = spacerParent && spacerParent.firstChild;
        }
        var spacerOffsets = spacerParent ? isc.Element.getOffsets(spacerParent, containerHandle) : [0,0],
            left = spacerOffsets[isc.Canvas.LEFT] + containerWidget.getScrollLeft(),
            top = spacerOffsets[isc.Canvas.TOP] + containerWidget.getScrollTop();

where is no "_spacerParent" item when rendered with canFilter:false; so it places to [0,0].

tested with latest versions.

Viewing all articles
Browse latest Browse all 4756

Trending Articles