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

32 minutes ago, bdiri said:

how i can hide only Colonnes menu option like this

function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts)
{
    columns.forEach(function(col) {
        col.hideable = false
    });
}

?

  • 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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...