Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

disable column resizing

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

Re: disable column resizing

Unread post by Timo »

admin wrote:Timo,

Code: Select all

function nuOnLoad(){

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

}
Steven
This doesn't work for me. There's also a nuOnLoad in the header that is not called anymore when I use your code.
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: disable column resizing

Unread post by admin »

Timo,

If you already have an nuOnLoad() then put it inside the main one you have already got in an if statement that will only run it on the Forms you want it to run on.

Code: Select all


function nuOnLoad(){

   if(nuCurrentProperties().form_id == 'whatever'){
      $('#nubody').off('.nuresizecolumn');
   }

}


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

Re: disable column resizing

Unread post by toms »

Timo,

This is my solution to disable column resizing that works also on mobile devices and the cursor will not change to ew-resize when hovering over a header title.

Code: Select all

if (nuFormType() == 'browse') {

    $(document).ready(function() { 
        disableBrowseResize();
    });
}

function disableBrowseResize() {
    $("div[id^='nuBrowseTitle']")
        .off('mousedown.nuresizecolumn')
        .off('touchstart.nuresizecolumn')
        .off('touchmove.nuresizecolumn')
        .off('touchstart.nuresizecolumn');
};
Timo
Posts: 217
Joined: Thu Mar 15, 2018 9:26 pm
Has thanked: 1 time

Re: disable column resizing

Unread post by Timo »

toms wrote:Timo,

This is my solution to disable column resizing that works also on mobile devices and the cursor will not change to ew-resize when hovering over a header title.
Many thanks, this works great :)
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: disable column resizing

Unread post by admin »

.
Locked