Sizing third party component SpreadJS

0
0

Hi,

I am trying to integrate the spreadsheet library spreadJS using a widget. I am having problems with correct sizing of the component.

Please see the screenshots. In the desinger it is sized correctly but in the browser, the component is too big.

Can you help me in this case?

Thanks,

Peter

  • You must to post comments
0
0

Hi Peter,

refreshing the client widget depends on how it´s implemented. Anyways here is a solution that seems to work fine with SpreadJS:

  • In your InitScript add line 22

js1

 

 

 

 

  • Add a ClientEvent Handler to your Widget

js2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I´ve also attached your modified sample project.

Please note that each external widget might need a slightly different approach to be integrated.
We also offer professional support for both integrating external components or more generic trainings on integrations.

Please contact sales AT wisej.com if you want to get a quote for that.

Best regards
Frank

 

  • Peter Lechner
    Hi Frank, many thank. I’ll try your approach. The SpreadJS_Resize.zip doesn’t seem to be downloadable. Can you check that? Thanks Peter
  • Frank (ITG)
    Hi Peter, I uploaded the sample again, can you please retry? TIA, Frank
  • You must to post comments
0
0

Hi Peter,

in your sample screenshot you have a screen scaling of 225%. You might want to start Visual Studio at 100% with the suggested link to get the same result between the designer and in the browser.

Additionally you have set the Widget as Dock = Fill so it will always fill out the complete Window1.

Hope that helps.

Best regards
Frank

  • Peter Lechner
    Hi Frank, that helps. But if you resize the window in the browser the component doesn’t adjust its size, even if Dock = Fill. Anything else I need to do? Thanks, Peter
  • Peter Lechner
    any hint? thanks peter
  • You must to post comments
0
0

Attached please find the solution (cleaned up obj and bin folder).

Thanks and BR

Peter

 

  • You must to post comments
0
0

Hi Frank,

the file size of the project is 13 MB. Is there a way to upload it?

BR, Peter

  • Frank (ITG)
    Hi Peter, you can strip down by leaving out /bin and /obj directories. Best regards, Frank
  • You must to post comments
0
0

Hi Peter,

can you please attach the source of your test project, then we can take a closer look at your integration.

Thanks in advance
Frank

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.