Question

FreedomUI - how to filter DataGrid based on page header

Hello Community,

 

Regarding the subject, I would like to create a dynamic filter for the DataGrid to display records that match the parameter entered in the header (or passed to the page when opened). The problem is that the DataGrid can be filtered by fields of type lookup or guid, but I need to use comparison based on string fields.

 

Do You have any experience or idea how achieve it ?

 

It seems that eg. crt.LoadDataRequest is not invoking when DataGrid data source is loaded.

 

Best regards,

Marcin

Like 0

Like

1 comments

Problem solved.

request: "crt.HandleViewModelInitRequest",
handler: async (request, next) => {
	const result = await next?.handle(request);
	request.$context.GridDetail_0vpyjng_PredefinedFilter={"items": {...}};
	return result;

 

Show all comments