Data Grid onFilterChanged

Good evening,

does exist a way to intercept the onFilterChanged event on a DataGrid in Servoy 2022.06 and to run a servoy function every time it occours?

Thanks in advance
Marco

hi,

if you’re referring to the filter of the component, you can intercept that via the ‘onColumnStateChanged’ handler:

function onColumnStateChanged(columnState) {
	var columnStateObj = JSON.parse(columnState);
	application.output(JSON.stringify(columnStateObj['filterModel']));

}

Thanks a lot Gabi, I didn’t see it.