Bug after update TreeTable

ぐ巨炮叔叔 提交于 2020-01-07 01:55:09

问题


I got a problem after updating the a TreeTable, as i understand this is because model is not refreshed, tried to refresh it but it doesnt help. Here is what i see after update: (erased headers by myself)

No rows added, but if i scroll horizontally, the rows are added and seen.

Here is my update code:

if (events) {
                tEvents.unbindAggregation("rows");
                tEvents.bindAggregation("rows",{
                    path: "events>/prg_years(ID_SCENARIO=" + filterKRVR.scenario + ",I_YEAR=" + filterKRVR.year + "m)" + "/HisGTO",
                    parameters: {
                        navigation: {
                            'prg_gto':  "HisPIPE",
                            'prg_pipe': "HisKS",
                            'prg_ks':   "HisLK"
                        },
                    }
                }); 
            }
            tEvents.getModel('events').refresh();

What im doing wrong?!

Btw, the bug appers only if im opening in tree table the lowest rows, if i open the heightest rows its ok, no bug.

Thank you all for the help!


回答1:


i created the new function that scroll the horizontal and vertical scrolls, and refreshed the table after each aggregation or update of rows

doRefresh: function(){
        $('.sapUiScrollBar div').scrollLeft(100);
        $('.sapUiScrollBar div').scrollLeft(0);
        $('.sapUiScrollBar div').scrollTop(100);
        $('.sapUiScrollBar div').scrollTop(0);
    },

and used it like here: Trigger function after update complete



来源:https://stackoverflow.com/questions/35197927/bug-after-update-treetable

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!