Jump to content

How to autoscroll a fieldset ?


FFREDIANELLI

Recommended Posts

  • 4 years later...
On 10/10/2018 at 1:21 AM, Sherzod said:

Maybe you wanted like this ?:

function beforeInit(sender, config)
{
    config.scrollable='vertical';
}

 

Hi @Sherzod,

 

I have two fieldset.. How can I sync scroll on the other fieldset when I scroll with another?

Is it possible?

 

Thanks,

Frances

Link to comment
Share on other sites

Hello @fraxzi

Try this approach:

procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  UniFieldSet1.JSInterface.JSAddElEvent('scroll', 'scrollable', [''], UniFieldSet2.JSName +'.scrollable.scrollTo(this.component.scrollable.getPosition().x, this.component.scrollable.getPosition().y)');
  UniFieldSet2.JSInterface.JSAddElEvent('scroll', 'scrollable', [''], UniFieldSet1.JSName +'.scrollable.scrollTo(this.component.scrollable.getPosition().x, this.component.scrollable.getPosition().y)');
end;

 

  • Like 1
Link to comment
Share on other sites

2 hours ago, Sherzod said:

Hello @fraxzi

Try this approach:

procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  UniFieldSet1.JSInterface.JSAddElEvent('scroll', 'scrollable', [''], UniFieldSet2.JSName +'.scrollable.scrollTo(this.component.scrollable.getPosition().x, this.component.scrollable.getPosition().y)');
  UniFieldSet2.JSInterface.JSAddElEvent('scroll', 'scrollable', [''], UniFieldSet1.JSName +'.scrollable.scrollTo(this.component.scrollable.getPosition().x, this.component.scrollable.getPosition().y)');
end;

 

Hey @Sherzod, another SuperMan Job!! I have no Idea where you get this ability but... Man, I'm a Fan :)

Thanks much,

Frances

  • Happy 1
Link to comment
Share on other sites

×
×
  • Create New...