Is it possible to make a grid.setFilter in a hidden column?

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
Jose Manuel
Profound User
Posts: 39
Joined: Mon Aug 21, 2017 11:48 am
First Name: Jose
Last Name: hernandez Guerra
Company Name: CM de gestion y servicios S.L.
Phone: 638489712
Address 1: CL Jose Luis de Cassos 50
City: Sevilla
State / Province: Outside Canada/USA
Zip / Postal Code: 41005
Country: Spain
Contact:

Is it possible to make a grid.setFilter in a hidden column?

Post by Jose Manuel »

Is it possible to make a grid.setFilter in a hidden column?
Thank
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Is it possible to make a grid.setFilter in a hidden column?

Post by Scott Klement »

Everything in a hidden column is already hidden, so it doesn't make sense to use a filter to decide what to show or hide. Can you explain better?
Jose Manuel
Profound User
Posts: 39
Joined: Mon Aug 21, 2017 11:48 am
First Name: Jose
Last Name: hernandez Guerra
Company Name: CM de gestion y servicios S.L.
Phone: 638489712
Address 1: CL Jose Luis de Cassos 50
City: Sevilla
State / Province: Outside Canada/USA
Zip / Postal Code: 41005
Country: Spain
Contact:

Re: Is it possible to make a grid.setFilter in a hidden column?

Post by Jose Manuel »

If it could make sense, I want to apply a getObj ("XXX"). Grid.setFiler (1, YYYY);
if column 1 is visible no problem, but I do not want that column to appear.
If column 1 is hidden setFilter does not work.

Thank
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Is it possible to make a grid.setFilter in a hidden column?

Post by Scott Klement »

Sorry, I just don't understand why you would want to do this.
dieter
Experienced User
Posts: 122
Joined: Tue May 22, 2012 6:45 am
First Name: Dieter
Last Name: Schröder
Company Name: Ecclesia Holding GmbH
State / Province: Outside Canada/USA
Country: Germany
Contact:

Re: Is it possible to make a grid.setFilter in a hidden column?

Post by dieter »

I don't know, if this is what you want:

We have a column in our grid which has a normal (not invisible) field, which contains the filter data. To make the column invisible, we just set the column width of the column to zero.

Dieter
Jose Manuel
Profound User
Posts: 39
Joined: Mon Aug 21, 2017 11:48 am
First Name: Jose
Last Name: hernandez Guerra
Company Name: CM de gestion y servicios S.L.
Phone: 638489712
Address 1: CL Jose Luis de Cassos 50
City: Sevilla
State / Province: Outside Canada/USA
Zip / Postal Code: 41005
Country: Spain
Contact:

Re: Is it possible to make a grid.setFilter in a hidden column?

Post by Jose Manuel »

That is exactly what we have done, too. From what I understand
that it would be nice to be able to filter hidden fields. It's more I believe that all possible APIs should be applicable to hidden fields
Thank you very much Dieter
dieter
Experienced User
Posts: 122
Joined: Tue May 22, 2012 6:45 am
First Name: Dieter
Last Name: Schröder
Company Name: Ecclesia Holding GmbH
State / Province: Outside Canada/USA
Country: Germany
Contact:

Re: Is it possible to make a grid.setFilter in a hidden column?

Post by dieter »

Hi Jose,
only a hint: What we do with our "hidden" column is to make filtering possible for all information in the subfile. Therefore we write a concatenated string into the field in the hidden column. This string contains all information of all columns. So we can apply the filter api on this single field. For the user it seems as he can filter alle columns with a single filter field.
For our "hidden" column we always use column number 0. So the filter api knows, in which column the filter is.

Sorry for my bad English but i fear my Spanish is even worse.

Dieter
Jose Manuel
Profound User
Posts: 39
Joined: Mon Aug 21, 2017 11:48 am
First Name: Jose
Last Name: hernandez Guerra
Company Name: CM de gestion y servicios S.L.
Phone: 638489712
Address 1: CL Jose Luis de Cassos 50
City: Sevilla
State / Province: Outside Canada/USA
Zip / Postal Code: 41005
Country: Spain
Contact:

Re: Is it possible to make a grid.setFilter in a hidden column?

Post by Jose Manuel »

great thank you very much, and about the language we are already two. jajajjj....
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests