Table. Catch columnWidth in runtime.

Find and share HowTos to various installations / configurations!
11 posts • Page 1 of 2
m.sabitov
Posts:23
Joined: Fri Feb 21, 2014 7:20 am

Table. Catch columnWidth in runtime.

Post by m.sabitov »

Hi!

How i can catch columnWidth in runtime?

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Table. Catch columnWidth in runtime.

Post by mkoller »

columnWidth or namedColumnWidth

m.sabitov
Posts:23
Joined: Fri Feb 21, 2014 7:20 am

Re: Table. Catch columnWidth in runtime.

Post by m.sabitov »

Sorry, its was bad question.
How i can catch columnWith, when i am changed column with using mouse

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Table. Catch columnWidth in runtime.

Post by mkoller »

You can't. What is the use case ?

m.sabitov
Posts:23
Joined: Fri Feb 21, 2014 7:20 am

Re: Table. Catch columnWidth in runtime.

Post by m.sabitov »

I need create buttons for opening filtering menu (like as in MS EXCEL filter). I can create button over table header in right position, but i cant change button positions if i'm changing column width

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Table. Catch columnWidth in runtime.

Post by mkoller »

You can try to use a Button or ComboBox widget inside a cell. See cellWidgetRC

m.sabitov
Posts:23
Joined: Fri Feb 21, 2014 7:20 am

Re: Table. Catch columnWidth in runtime.

Post by m.sabitov »

Maybe, but its dont work in header/

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Table. Catch columnWidth in runtime.

Post by leoknipp »

Hello,

if you want to create an own "header" you could set the header invisible.
The own header is then defined with objects above the table.


Best Regards
Leopold Knipp
Senior Support Specialist

m.sabitov
Posts:23
Joined: Fri Feb 21, 2014 7:20 am

Re: Table. Catch columnWidth in runtime.

Post by m.sabitov »

Hello

But if change column with, objects above must change positions relatively new column widht. I cant do this.

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Table. Catch columnWidth in runtime.

Post by leoknipp »

Hello,

as Martin Koller has written you can add a widget to a cell.
If you add widgets in the first line you can remove the header and use the first line as header.
Then you do not have to resize the widgets on your own as they are part of the table.

Best Regards
Leopold Knipp
Senior Support Specialist

11 posts • Page 1 of 2