gerardocrisci Posted March 9, 2020 Share Posted March 9, 2020 Ciao the value of UniDBGrid.Columns.Filtering.Editor.ClearButton it is always set to true. (?) is it possible to change it to false? Grazie Link to comment Share on other sites More sharing options...
Sherzod Posted March 9, 2020 Share Posted March 9, 2020 Hello, We will check. Link to comment Share on other sites More sharing options...
gerardocrisci Posted March 11, 2020 Author Share Posted March 11, 2020 Ciao Sherzod in unit uniDBGrid procedure TUniCustomDBGridColumn.InitFilter(C: TJSObject; Fld: TField); (FEdit as IUniFormControl).ClearButton := True; TUniControlHack(FEdit).LayoutConfig.Width := '95%'; I think it's a solution is to create a property in Column.Filtering or generic .. like UseEditorClearButton stored false if NOT UseEditorClearButton then (FEdit as IUniFormControl).ClearButton := True; another block to consider a modification is the width property, I would modify the code in if TUniControlHack(FEdit).LayoutConfig.Width='' then TUniControlHack(FEdit).LayoutConfig.Width := '95%'; Grazie Link to comment Share on other sites More sharing options...
Stemon63 Posted February 23, 2023 Share Posted February 23, 2023 Hi, any news on setting properly .ClearButton to false in uniDbgrid column filter editor? Thanks a lot! Link to comment Share on other sites More sharing options...
Sherzod Posted February 23, 2023 Share Posted February 23, 2023 2 hours ago, Stemon63 said: any news on setting properly .ClearButton to false in uniDbgrid column filter editor? Hello, One possible solution on the client side: function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { columns.forEach(function(col) { if (col.fedit) { col.fedit.getPlugins().forEach(function(p) { if (p.alias[0] == "plugin.clearable") { p.destroy() } }) } }); } 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