Cascading events on dhtmlxgrids

I have three grids namely, ports, members and instances. onXLE ports calls a function which selects first row in instance grid. This selection calls instance onSelect which calls filterBy on members grid. Post this, onSelect members is called via user for first row which triggers filterBy on ports grid.

Code:

[code]this.mygridDetail_MSTInstances.attachEvent(“onSelectStateChanged”, function(mstId) {
stpViewMgr.mygrid_Member.filterBy(stpViewMgr.mygrid_Member
.getColIndexById(stpViewMgr.stpMemberInfoEnum.MstInstanceId.ID),
function(data) {
return data == mstId;
});
stpViewMgr.mygrid_Member.selectRow(0);
});
this.mygrid_Member.attachEvent(“onSelectStateChanged”, function(memberId) {
stpViewMgr.tabbarC.showTab(stpViewMgr.tabLabelsEnum.MEMBER_PORTS);
stpViewMgr.tabbarC.setTabActive(stpViewMgr.tabLabelsEnum.MEMBER_PORTS);
stpViewMgr.mygrid_MemberPorts.filterBy(stpViewMgr.mygrid_MemberPorts
.getColIndexById(stpViewMgr.stpMemberPortInfoEnum.MemberID.ID),
function(data) {
return data == memberId;
});
});

this.mygrid_MemberPorts.attachEvent(“onXLE”, function(id) {
stpViewMgr.mygridDetail_MSTInstances.selectRow(0);
stpViewMgr.tabbarC.showTab(stpViewMgr.tabLabelsEnum.SVG_VIEW);
stpViewMgr.tabbarC.setTabActive(stpViewMgr.tabLabelsEnum.SVG_VIEW);
});
[/code]

Only second filterby works properly in this sequence. entire cascade is not possible and instance filterby exits without proper execution.

Please suggest a solution?

While rows array updates on loadXMLString and parse, I can see that row buffer and _f_row buffer don’t clean. All filters are applied on this uncleaned buffer.