Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

disable column resizing

Questions related to using nuBuilder Forte.
Timo
Posts: 221
Joined: Thu Mar 15, 2018 9:26 pm
Has thanked: 1 time

disable column resizing

Unread post by Timo »

How to disable column resizing of a browse form? It's embedded as iframe. (Run Object, iFrame Method)
admin
Site Admin
Posts: 2829
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 30 times

Re: disable column resizing

Unread post by admin »

Timo,

I don't understand what you mean.

Steven
Timo
Posts: 221
Joined: Thu Mar 15, 2018 9:26 pm
Has thanked: 1 time

Re: disable column resizing

Unread post by Timo »

Columns of a Browse Form can be resized with the mouse.

This disables the resizing:

Code: Select all

 $('#nubody').off('.nuresizecolumn'); 
How to disable itjust for a browse form that is in embedded in an iframe (Run Object, iFrame Method) ?
admin
Site Admin
Posts: 2829
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 30 times

Re: disable column resizing

Unread post by admin »

Timo,

You could place this in the Javascript section of your Form.

Code: Select all

function nuOnLoad(){
    $('#nubody').off('.nuresizecolumn');
}
Steven
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Re: disable column resizing

Unread post by toms »

nuOnLoad should only be placed in the Setup -> Header, otherwise it will be triggered for other forms as well.

https://forums.nubuilder.cloud/viewtopic. ... oad#p15379
admin
Site Admin
Posts: 2829
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 30 times

Re: disable column resizing

Unread post by admin »

.
Timo
Posts: 221
Joined: Thu Mar 15, 2018 9:26 pm
Has thanked: 1 time

Re: disable column resizing

Unread post by Timo »

This does not work reliably and not at all on touch devices
admin
Site Admin
Posts: 2829
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 30 times

Re: disable column resizing

Unread post by admin »

.
toms
Posts: 785
Joined: Sun Oct 14, 2018 11:25 am

Re: disable column resizing

Unread post by toms »

Please give me some time, I'm going to find a solution.
admin
Site Admin
Posts: 2829
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 30 times

Re: disable column resizing

Unread post by admin »

Timo,

You can remove nuOnLoad() after it does everything you want it to do.

So that it will only run one anytime.

eg.

Code: Select all

function nuOnLoad(){

    $('#nubody').off('.nuresizecolumn');
    nuOnLoad = null;

}
Steven
Locked