ice Posted May 8, 2019 Share Posted May 8, 2019 when i change UniDBGrid.Columns[x].Filtering.Enabled := true/false does not change on visible Version: 1499 Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted May 12, 2019 Share Posted May 12, 2019 Hello type THackDBGrid = Class(TUniDBGrid); When you enable/disable filter, call THackDBGrid(UniDBGrid1).SetColumnsChanged; Link to comment Share on other sites More sharing options...
ice Posted May 12, 2019 Author Share Posted May 12, 2019 Thanks, disable works. When I enable Filter - > problem with display in Header - > title and edit filter-field does not show both. Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted May 12, 2019 Share Posted May 12, 2019 Can you try this? THackDBGrid(UniDBGrid1).SetColumnsChanged; UniSession.AddJS('var ct='+UniDBGrid1.JSName+'.headerCt; '+ 'try {ct.setMaxHeight(50);} catch (err) {}'); Link to comment Share on other sites More sharing options...
ice Posted May 12, 2019 Author Share Posted May 12, 2019 Does not work! i found this https://fiddle.sencha.com/fiddle/2fon?height=600 how can we use that? Link to comment Share on other sites More sharing options...
Sherzod Posted May 12, 2019 Share Posted May 12, 2019 6 minutes ago, ice said: Does not work! Can you make a simple testcase for reproduce? Link to comment Share on other sites More sharing options...
ice Posted May 12, 2019 Author Share Posted May 12, 2019 testcase: UniDBGridFilter.zip Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted May 12, 2019 Share Posted May 12, 2019 UniSession.AddJS('setTimeout(function () { '+ ' try { '+ ' var ct = '+UniDBGrid1.JSName+'.headerCt; '+ ' ct.setMaxHeight(50); '+ ' } catch (err) {} '+ ' }, 1);'); Link to comment Share on other sites More sharing options...
ice Posted May 12, 2019 Author Share Posted May 12, 2019 thanks +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