In the API doc (V3), dataIndx should be data > condition
I following you, but struggling with the examples.
I've tried to replace the filter and then call flex method. I have array/TEXT data and columns defined like this:
{ title: "Group Type", dataType: "string", dataIndx: 0,
filter: {
type: 'select',
condition: 'equal',
value: 'Total',
valueIndx: 0,
labelIndx: 0,
on: true,
prepend: { '': ' Select' },
listeners: ['change']
}
},
{ title: "Group Value", dataType: "string", dataIndx: 1,
filter: {
type: 'select',
condition: 'equal',
value: 'Total',
valueIndx: 1,
labelIndx: 1,
groupIndx: 0,
on: true,
prepend: { '': ' Select' },
listeners: [{ 'change': function (evt, ui) {
$( ".selector" ).pqGrid('filter', {
oper: 'replace', data: [{ dataIndx: 0, condition: 'equal', value: null }]
});
$( ".selector" ).pqGrid( "flex", {
dataIndx: [ 0, 1 ]
} );
}}]
}
}
Am I on the right path here? - appreciate the help.