Announcement

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

    pickTreeItem fetchData doesnt update the UI

    The code indicates that fetchdata() do a redraw of the menu container, but never work.

    this code works

    Code:
      var fld = formProcedimientos.getField('dependencia');
                                    fld.fetchData();
                                    if (fld.canvas != null && fld.canvas.menu != null) {
                                        fld.canvas.menu.destroy();
                                        fld.canvas.menu = null;
                                    }
    the docs say

    fetchData
    Only applies to databound items (see PickTreeItem.optionDataSource).
    Performs a fetch type operation on this item's DataSource to retrieve/refresh the tree of data displayed as rows in this items menu.


    Ok its true but only update the data on the tree but not update the ui.

    in the source code i found this.

    // The menu reacts to invalidateCache on the resultTree by destroying submenus and
    // regenerating top level items.
    resultTree.invalidateCache();

    Thats not true.

    Using the last version of the 8 series.

    Exist a better way then hackin the menu in canvas?
Working...
X