1
Help for ParamQuery Grid (free version) / Filter not work on rendered columns
« on: June 15, 2019, 09:20:35 pm »
Hi,
I'm using PQGrid 2.4.1 free version in asp.NET MVC project.
I have a grid that receive the data with JSON type like this:
So, in column I write this for write my institution info (Institution's Name) and for filter writting in header:
Simply, the filter not works with this combination. When I filter for observations column, the filter works perfectly.
How can I filter for rendered value in column?
Regards.
I'm using PQGrid 2.4.1 free version in asp.NET MVC project.
I have a grid that receive the data with JSON type like this:
Code: [Select]
[{
"institutionId":1,
"institution":{
"id":1,
"name":"school",
...more info about institution...
}
"observations":"Observation example"
...more info about the obj...
}
...more objs...
]
So, in column I write this for write my institution info (Institution's Name) and for filter writting in header:
Code: [Select]
{
title: 'InstituciĆ³n',
dataIndx: 'institutionId',
dataType: 'string',
width: '300',
render: (ui) => {
if (ui.rowData['institution'] == undefined) {
return 'Unknown';
}
return ui.rowData['institution']['name'];
},
filter: { type: "textbox", condition: 'contain', listeners: ['keyup'], cache: null }
}
Simply, the filter not works with this combination. When I filter for observations column, the filter works perfectly.
How can I filter for rendered value in column?
Regards.