Page 2 of 2

Re: Set Filter on JQGrid Column on create

PostPosted: 05 Jun 2019 17:41
by feland
Hi,
in the image1 I set 2 filters, in the column "Stato Fattura" is of type "cstSelect" (col.SType := cstSelect).

In the image2 I click on the "X" (Clear Search Value) of the column "Stato Fattura" and the result of the search doesn't change.
In the image3 you can see the behavior expected.

To fix this problem you send me the following command but thw question is: How do I know the column where I clicked the button "Clear Search Value" for delete the current filter?

Code: Select all
Js:= Format('$("#gs_%s").val("%s")', [IWCGJQGrid1.JQGridOptions.ColModel[0].Name, Def]);


Can you help me please?
I hope to have clarified
Thanks.

Re: Set Filter on JQGrid Column on create

PostPosted: 07 Jun 2019 17:52
by Alexander Bulei
Hi feland,
Hm...now I got that you want :)

Btw, you need use the Provider.OnBeforeSearch and check & apply the filters.

Best Regards.

Re: Set Filter on JQGrid Column on create

PostPosted: 10 Jun 2019 14:15
by feland
HI Alexander,
sorry but i don't find how to retrieve the value of the column name/index.

In the oblect "Adata" I don't find this info.

Can you help me?

Re: Set Filter on JQGrid Column on create

PostPosted: 11 Jun 2019 09:21
by Alexander Bulei
Hi feland,

It's have inverted logic...If column doesnt exists in parameters, mean the filter is cleared/empty.

Best Regards.

Re: Set Filter on JQGrid Column on create

PostPosted: 12 Jun 2019 10:45
by feland
Hi,
in this case, even by clicking on the "x" the filter is not deleted and the column exists in parameters.

What is the event that is triggered by clicking on the x?

Thanks

Re: Set Filter on JQGrid Column on create

PostPosted: 19 Jun 2019 09:13
by Alexander Bulei
Hi feland,

in this case, even by clicking on the "x" the filter is not deleted and the column exists in parameters.


I've checked and it's not there...are you sure?

Best Regards.