In CodeLib we have freeze for SubForm:
2020-08-30: Subform: Freeze the first column upon scrolling horizontally
But how freeze one for BrowseForm?
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.
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.
How freeze the first column upon scrolling for BrowseForm
-
- nuBuilder Team
- Posts: 4565
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 529 times
- Contact:
Re: How freeze the first column upon scrolling for BrowseFor
Maybe like this?
Code: Select all
if (nuFormType() == 'browse') {
$(window).scroll(function(e) {
var scrollLeft = $(window).scrollLeft();
$("[data-nu-column='0']").each(function() {
if (scrollLeft > 0) {
$(this).css({ 'left': scrollLeft, 'z-index': '100' });
} else {
$(this).css({ 'left': 3, 'z-index': '0'});
}
});
});
}
-
- Posts: 156
- Joined: Wed Dec 23, 2020 12:28 pm
- Location: Russia, Volgograd
- Has thanked: 32 times
- Been thanked: 7 times
- Contact:
Re: How freeze the first column upon scrolling for BrowseFor
Tnx! It's works|kev1n wrote:Maybe like this?
Wbr, miasoft.