onAfterUpdateFinish event

1、when use dp.init(grid),
2、and attach handler on event “onAfterUpdateFinish”,
3、while in the handler, load grid data again, like load or clearAndLoad,
this could changing the key variable xmlFileUrl into “”, thus filter function would occors error, is there any way to avoid this?

and grid.enableSmartRendering(true) :ugeek:

Can you provide a code snippet ?

Normally, if you are using dynamic smart rendering - client side filtering can’t be used ( only server side filtering )

I use java connector 1.5, and the js code snippet:

function initXgrid(){
	with(mygrid){
		setIconsPath(imgPath);
		enableSmartRendering(true);
		enableBlockSelection(true);
		init();
		attachEvent("onKeyPress", doOnKeyPress);
	}
	myDataProcessor = new dataProcessor(servletPath+"&modelId="+metaModelId+"&schemeId="+schemeId+"&g_unitId="+g_unitId+"&width="+width+"&varIds="+varIds);
	with(myDataProcessor){
		setUpdateMode("off")
		init(mygrid);
		attachEvent("onBeforeUpdate",function(id,status){
			main_layout.progressOn()
			return true
		});
		attachEvent("onAfterUpdateFinish",function(){
			main_layout.progressOff()
			loadXgrid()
		});
		defineAction("error",function(sid,response){
			main_layout.progressOff()
			var message = sid.getAttribute("message");
			alert(message);
			return true;
		})
	}
}

function loadXgrid() {
	main_layout.progressOn()
	var url = servletPath+"&modelId="+metaModelId+"&schemeId="+schemeId+"&unitId="+g_unitId+"&width="+width+"&varIds="+varIds ;
	mygrid.clearAndLoad(url,function(){
		mygrid.xmlFileUrl = url ;
		main_layout.progressOff()
	});
}

:arrow_right: mygrid.xmlFileUrl = url ;
fix use this, but looks abnormally

and I do use server side filtering , :ugeek:

Im still not able to recreate the issue locally, but will investigate it anyway.