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 wrote:Timo,
StevenCode: Select all
function nuOnLoad(){ $('#nubody').off('.nuresizecolumn'); nuOnLoad = null; }
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
disable column resizing
Re: disable column resizing
Re: disable column resizing
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.
Steven
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
-
- Posts: 785
- Joined: Sun Oct 14, 2018 11:25 am
Re: disable column resizing
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.
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');
};
Re: disable column resizing
Many thanks, this works greattoms 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.
