Jump to content


Photo

filtering field1 OR field2


  • Please log in to reply
5 replies to this topic

#1 Lothar

Lothar
  • Members
  • 7 posts

Posted 11 January 2019 - 02:27 PM

Hi Boki,

 

I would like to filter NextGrid which shows the rows where one of the fields match to the filtertext.

How is that possible?

 

Thanks in advance,

Lothar



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,751 posts
  • Gender:Male

Posted 11 January 2019 - 09:45 PM

Hi,

There is no default support for this feature, but you can loop trough rows inspect cells and hide rows that should be excluded.

But I will think about adding similar feature soon.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 Lothar

Lothar
  • Members
  • 7 posts

Posted 15 January 2019 - 01:35 PM

Hi Boki,

 

that's what I wanted to do - writing it myself - but how to hide?

 

I wrote a helper for TNxVirtualGrid6 to have it for TNextGrid6 and TNextDBGrid6

and there the procedures are empty.

 

What du you suggest?

Regards,

Lothar

 

 

procedure TNxRecordRow6.Hide;
begin

end;
 

procedure TNxRecordRow6.Show;
begin

end;

procedure TNxRecordRow6.SetVisible(const Value: Boolean);
begin

end;
 



#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,751 posts
  • Gender:Male

Posted 15 January 2019 - 07:54 PM

Hi,

NextDBGrid have not this possibility, but NextGrid have.

I will try to add property FilterMatching where you will be able to set matching method.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#5 Lothar

Lothar
  • Members
  • 7 posts

Posted 18 January 2019 - 05:21 PM

Hi Boki,

 

a property FilterMatching would be fine.

 

I can't make it work without your programming in NextDbGrid.

 

Thank you.

How do I find out about this new feature when it's done?

 

Kind regards

Lothar



#6 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,751 posts
  • Gender:Male

Posted 22 January 2019 - 07:55 PM

Hi Lothar,

You can check release notes. I will add it there.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users