Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

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

    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.

    #2
    Hi,
    is this gonna be resolved? Or framework do not support CanvasItem components in filter editor by default?

    Comment


      #3
      Thanks for the notification. We have now made a change to address this issue.
      Please try the next nightly build, dated Aug 7 or above (10.0 and 10.1 branches)

      Regards
      Isomorphic Software

      Comment

      Working...
      X