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. 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? 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);})' ); 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? 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"; } 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