Announcement

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

    TreeGrid / DataChangedHandler / getOperationType / undefined

    Hi,

    Please why the event.getOperationType () return "undefined" in this code ?

    Thank you in advance

    Code:
    TreeGrid treeTps = new MyTreeGrid();
    treeTps.setDataSource(instTps);
    treeTps.setAutoFetchData(false);
    ...
    treeTps.addDataChangedHandler(new com.smartgwt.client.widgets.tree.events.DataChangedHandler() {
        @Override
        public void onDataChanged(com.smartgwt.client.widgets.tree.events.DataChangedEvent event) {
            GWT.log("treeTps : addDataChangedHandler : " + event.getOperationType()
        }
    });
    SGWT : 6.1p (build 2017-11-22)
    Linux : Fedora 25
    Chrome: 62.0.3202.94 (64-bit)
    Gwt : 2.8.2


    #2
    We document that the operationType parameter is only set under some circumstances - otherwise it will be null. In the case you mention, there is a problem with conversion of undefined to null in JavaScript for the event APIs we generate, and we've fixed that as well as improved the documentation for DataChangedHandler.

    These changes have been applied to SGWT 6.1p and newer releases and will be in the nightly builds dated 2017-11-26 and beyond.

    Comment

    Working...
    X