Jump to content

Grid filters List


UniterYazilim

Recommended Posts

On 1/18/2019 at 6:31 PM, Hayri ASLAN said:

Hello

Please check attached sample application.

Available values for Filter = "boolean,date,list,number,string"

image.thumb.png.195a3186359372320a3f9280171e3e4c.png

CustomDBGrid.rar 65.43 kB · 99 downloads

Very useful, thank you so much for sharing @Hayri ASLAN!!!

The filter is perfect but I have a problem with selection.

1.      When I select the first record of the unfiltered grid, I correctly get the ID associated with the first record.

1.png.71ee555b40a132ae53eb907663e9d79c.png

2.      Then I filter the ID column by excluding the first record (ID filter:  > 1)

2.png.228278d05d6fcb193e63e9b41a9b82bf.png

3.      The problem is that by selecting again the first row of the filtered grid I get the previous value (ID = 1) instead of the correct one (ID = 2).

3.png.1527171fd24877c840d80d36552105a1.png

However, if I select the second row and  then again the first, the result is ok.

I tried very hard to fix this behavior but I couldn’t find even a dirty workaround.

In attachment the project I used to replicate this problem.

I am using Delphi 10.2 and UniGui version 1.90.0 build 1545.

 

Please, any help will be appreciated!!!

Thank you!

UniGuiFilterDBGrid_selection_bug_demo.zip

Link to comment
Share on other sites

  • 1 month later...
  • 6 months later...
On 1/18/2019 at 8:31 PM, Hayri ASLAN said:

Merhaba

Lütfen ekteki örnek uygulamayı kontrol edin.

Filtre için mevcut değerler = "boolean,date,list,number,string"

image.thumb.png.195a3186359372320a3f9280171e3e4c.png

ÖzelDBGrid.rar 65,43 kB · 110 indirme

Merhaba Hayri Bey,

CustomDBGrid i component olarak yükledim örnekteki gibi filter için değer atıyabiliyorum. Columns içindeki propertylere baktığım da ise Filter string alanı görünmüyor. Filter property i buraya eklemek mümkün mü? Yardımcı olursanız sevinirim.

Kullanmış olduğum versiyon uni-1.90.0.1560. 

 

image.png.081b218617c822d318aefb3e05a2fb7f.png

Link to comment
Share on other sites

  • 7 months later...
On 11/12/2021 at 1:06 PM, Antonio said:

Very useful, thank you so much for sharing @Hayri ASLAN!!!

The filter is perfect but I have a problem with selection.

1.      When I select the first record of the unfiltered grid, I correctly get the ID associated with the first record.

1.png.71ee555b40a132ae53eb907663e9d79c.png

2.      Then I filter the ID column by excluding the first record (ID filter:  > 1)

2.png.228278d05d6fcb193e63e9b41a9b82bf.png

3.      The problem is that by selecting again the first row of the filtered grid I get the previous value (ID = 1) instead of the correct one (ID = 2).

3.png.1527171fd24877c840d80d36552105a1.png

However, if I select the second row and  then again the first, the result is ok.

I tried very hard to fix this behavior but I couldn’t find even a dirty workaround.

In attachment the project I used to replicate this problem.

I am using Delphi 10.2 and UniGui version 1.90.0 build 1545.

 

Please, any help will be appreciated!!!

Thank you!

UniGuiFilterDBGrid_selection_bug_demo.zipUnavailable

UniGuiFilterDBGrid_selection_bug_demo.zip 60.92 kB · 15 downloads

It would be really cool if this filter options came native to the grid

Link to comment
Share on other sites

On 11/12/2021 at 5:06 PM, Antonio said:

Very useful, thank you so much for sharing @Hayri ASLAN!!!

The filter is perfect but I have a problem with selection.

1.      When I select the first record of the unfiltered grid, I correctly get the ID associated with the first record.

1.png.71ee555b40a132ae53eb907663e9d79c.png

2.      Then I filter the ID column by excluding the first record (ID filter:  > 1)

2.png.228278d05d6fcb193e63e9b41a9b82bf.png

3.      The problem is that by selecting again the first row of the filtered grid I get the previous value (ID = 1) instead of the correct one (ID = 2).

3.png.1527171fd24877c840d80d36552105a1.png

However, if I select the second row and  then again the first, the result is ok.

I tried very hard to fix this behavior but I couldn’t find even a dirty workaround.

In attachment the project I used to replicate this problem.

I am using Delphi 10.2 and UniGui version 1.90.0 build 1545.

 

Please, any help will be appreciated!!!

Thank you!

UniGuiFilterDBGrid_selection_bug_demo.zip 60.92 kB · 16 downloads

Hi everyone,

is anybody able to help with the selection bug I found using the grid filter? Please help

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...