zhyhero Posted May 30, 2018 Share Posted May 30, 2018 Unidbgrid with group header and filters. Filters are not on same row . Any idea to make filter on same row ? Quote Link to comment Share on other sites More sharing options...
iyarar Posted May 30, 2018 Share Posted May 30, 2018 make another group for this three columns Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 30, 2018 Share Posted May 30, 2018 Hi, One possible solution I guess UniDBGrid -> ClientEvents -> ... function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { var me = sender, maxY = 0; me.columnManager.columns.forEach(function(el) { if (el.fedit && el.fedit.getY() > maxY) { maxY = el.fedit.getY() } }); if (maxY > 0) { me.columnManager.columns.forEach(function(el) { if (el.fedit) { el.fedit.setY(maxY - el.fedit.getHeight()); el.fedit.setX(el.fedit.getX() - 5); } }); } } Quote Link to comment Share on other sites More sharing options...
zhyhero Posted May 30, 2018 Author Share Posted May 30, 2018 Thank you, I will test it when i go home. Quote Link to comment Share on other sites More sharing options...
zhyhero Posted May 31, 2018 Author Share Posted May 31, 2018 Hi, One possible solution I guess UniDBGrid -> ClientEvents -> ... function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) { var me = sender, maxY = 0; me.columnManager.columns.forEach(function(el) { if (el.fedit && el.fedit.getY() > maxY) { maxY = el.fedit.getY() } }); if (maxY > 0) { me.columnManager.columns.forEach(function(el) { if (el.fedit) { el.fedit.setY(maxY - el.fedit.getHeight()); el.fedit.setX(el.fedit.getX() - 5); } }); } } I have test with these codes and .....column title missing. And If not every column has filter shows like this(with out these codes). DBGrid (With codes) Shows 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.