Hi,
I’d like to have my first column grid immovable. How do I set that? I observe that when I place the grids in the header part all columns are immovable. Is there a way to set the first grid column immovable?
Thanks.
Hi,
I’d like to have my first column grid immovable. How do I set that? I observe that when I place the grids in the header part all columns are immovable. Is there a way to set the first grid column immovable?
Thanks.
hi,
Thank you very much for the response.
Yes, we would like to have a property where we can set if the column is immovable or not. It is one of our business requirements to have a column stay at the left most portion of the screen.
Your tip about anchors helped me solve my other requirement as well. Thanks!
Has this been implemented in Servoy 6? Can I set only one column immovable?
Have you checked the 6.0 release notes? See Solution Development > Form Design > Misc.
Paul
Thanks for reminding me.
I browsed the link : https://wiki.servoy.com:8443/display/pu … cellaneous
I got this: Ability to lock one or more columns on the left and/or right of a Tableview in place (meaning they cannot be rearranged), by anchoring the element representing the column cell top and bottom. Can be combined with left/right anchoring for resizability of the column
Testing is in progress.
I changed my first Label/Button column of the grid to TOP, BOTTOM, and LEFT anchors at design time. This setting made the column immovable, which is fine. However, the succeeding columns on its right are also immovable even though I set their anchors as “SM_ANCHOR.WEST | SM_ANCHOR.EAST | SM_ANCHOR.NORTH” at runtime. I cannot drag all columns to other locations. I was expecting the left most first column to be immovable and the rest of the columns movable. I am currently using Servoy 6.0.0. Is this the expected result?
Hi Erik,
No, that is not expected behavior: what if you just do it using design time settings? Does it work properly then? And does it only stop working as expected when modifying the anchoring settings at runtime through the solution model?
Paul
Hi Paul,
Thanks for the reply. I cannot set the anchors at design time because the columns are created at runtime.
I tried creating 2 columns at design time and 4 columns at runtime in one table. I only set the leftmost column to be immovable, but all columns were still immovable.
I’ll investigate further on static grid columns, but I was hoping this feature should work for both statically and dynamically created grids.
Erik
Hi Erik,
As I said, it’s not expected behavior that it doesn’t work when you do it through the SolutionModel. If that is the case, please file a case in our support system.
Paul
Done, case id is 407187. Thanks.