Jump to content

UniDBgrid Grow Filter


bdiri

Recommended Posts

 

Hi All

Since Mr Sherzod  gave us a very very useful gift ( see link below ) , i use it production to filter in UniDBgrid ( many thanx )

my problem is, if some one can help me,i thank him in advance

- how can i detect if UniDBgrid is filtred or not and maybe deactivate filter by code if True

- In UniDBgrid with WebOptions.paged is True how can recalculate total page to show data filtred

- how i can hide only Colonnes menu option like this

image.png.8a4de2835a6393e6b98b0218f105df6a.png

 

thank you for your help

 

Link to comment
Share on other sites

14 minutes ago, bdiri said:

how can i detect if UniDBgrid is filtred or not and maybe deactivate filter by code if True

Hello,

Something like this I think:

  with UniDBGrid1 do
    JSInterface.JSCode('if ('#1'.getStore().isFiltered()) {'#1'.clearFilters()};');
  
  or
    
  UniDBGrid1.JSInterface.JSCall('clearFilters', []);

 

  • Like 1
Link to comment
Share on other sites

Hi Sherzod, thanx for help

Can i get filter string from Plugin to apply it to dataset because after applying the filter the grid does not update the dataset

and change filter mode to Delayed Search

Link to comment
Share on other sites

8 hours ago, bdiri said:

Can i get filter string from Plugin to apply it to dataset because after applying the filter the grid does not update the dataset

and change filter mode to Delayed Search

Hi,

Then isn't it better to use these standard solutions that are shown in these demo examples?

\FMSoft\Framework\uniGUI\Demos\Desktop\GridFiltering
\FMSoft\Framework\uniGUI\Demos\Desktop\GridFiltering-2

 

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...