Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - erickvelasco11

Pages: [1]
1
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:

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.

Pages: [1]