bdiri Posted May 31, 2021 Share Posted May 31, 2021 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 thank you for your help Link to comment Share on other sites More sharing options...
Sherzod Posted May 31, 2021 Share Posted May 31, 2021 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', []); 1 Link to comment Share on other sites More sharing options...
Sherzod Posted May 31, 2021 Share Posted May 31, 2021 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 }); } ? 1 Link to comment Share on other sites More sharing options...
bdiri Posted May 31, 2021 Author Share Posted May 31, 2021 Clear Filter and hide menu option work perfectly thank you so much us usual good and fast support 1 Link to comment Share on other sites More sharing options...
Sherzod Posted May 31, 2021 Share Posted May 31, 2021 1 hour ago, bdiri said: In UniDBgrid with WebOptions.paged is True how can recalculate total page to show data filtred This needs to be investigated. 1 Link to comment Share on other sites More sharing options...
bdiri Posted June 1, 2021 Author Share Posted June 1, 2021 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 More sharing options...
Sherzod Posted June 2, 2021 Share Posted June 2, 2021 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 More sharing options...
bdiri Posted June 2, 2021 Author Share Posted June 2, 2021 Thank you 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now