Michal Tabery Posted November 11, 2019 Share Posted November 11, 2019 Hi, i have a two TUniScrollBox onto which rows of dynamically generated controls are placed. As Header and data. I need to sync the horizontal scroll. I would appreciate any help on this. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 11, 2019 Share Posted November 11, 2019 2 hours ago, Michal Tabery said: i have a two TUniScrollBox onto which rows of dynamically generated controls are placed. As Header and data. I need to sync the horizontal scroll. Hi, The forum had a similar question if I’m not mistaken, have you tried searching? Quote Link to comment Share on other sites More sharing options...
Michal Tabery Posted November 14, 2019 Author Share Posted November 14, 2019 Hi, I created the function UniSession.AddJS( ' '+UniScrollBox1.JSName+'.getTargetEl().addListener(''scroll'' ' +' ,function(sender) {'+UniScrollBox2.JSName+'.getTargetEl().scrollTo(''left'', '+UniScrollBox1.JSName+'.getTargetEl().getScrollLeft(), false);})' ); Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 14, 2019 Share Posted November 14, 2019 21 minutes ago, Michal Tabery said: I created the function Hi, Found a way? Works? Quote Link to comment Share on other sites More sharing options...
Michal Tabery Posted November 14, 2019 Author Share Posted November 14, 2019 Hi, it works ok. I have added a scroll not shown on the header ScrollBox. function afterrender (sender, eOpts) { sender.getEl (). dom.style ["overflow-x"] = "hidden"; } 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.