Welcome! Log In Create A New Profile

Advanced

[WB24] Width of table columns at runtime

Posted by Michael Drechsel 
[WB24] Width of table columns at runtime
June 27, 2020 06:20PM
Hi,

is there any way to read the width of the columns at runtime in webdev ?

I got only the initialwidth, but I want save the real width that the user made.

Tableadjust or something similar doesn´t work in Webdev ?

Any other Ideas to display a table column in an correct width so that all values could read?

regards Michael
Re: [WB24] Width of table columns at runtime
June 27, 2020 06:34PM
Hi Michael,

how about ..width ?

Table.YourColumn..Width

Kind regards,
Guenter Predl
office@windev.at
Re: [WB24] Width of table columns at runtime
June 27, 2020 08:17PM
Hi Guenter,

thats exact the problem:

..width is = ..initialwidth

no matter what the user does with the column in the session.

regards Michael
Argus
Re: [WB24] Width of table columns at runtime
June 27, 2020 09:42PM
just to check... did you try it in BROWSER code?

A change of width in a column is typically something that wouldn't be sent to the server side. So if the ..width property is to work, that will be in browser code only.
Re: [WB24] Width of table columns at runtime
June 27, 2020 11:30PM
Hi Argus,

In Browser Code ..width is not available thumbs down

regards Michael
Re: [WB24] Width of table columns at runtime
June 30, 2020 11:46AM
Hi,

A possibility in Browsercode:
JSProperty("document.getElementById('A1_TITRES_0')","offsetWidth")


Where "A1" is the alias of the table, "TITRES" the columnheader (always "TITRES") and "0" the columnnumber (starts with"0", "1", "2"...)
Re: [WB24] Width of table columns at runtime
June 30, 2020 03:50PM
Hi Peter,

thx, I´ll try it.

regards Michael
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: