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 Quote 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; Quote 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. Quote 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) {}'); Quote 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? Quote 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? Quote Link to comment Share on other sites More sharing options...
ice Posted May 12, 2019 Author Share Posted May 12, 2019 testcase: UniDBGridFilter.zip Quote 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);'); Quote Link to comment Share on other sites More sharing options...
ice Posted May 12, 2019 Author Share Posted May 12, 2019 thanks +1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.