-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Idea] Full Size
functionality
#1044
Comments
Thanks. I will investigate this. First test - after toggle (when restoring the original position) the width goes smaller with 15px,) |
Yes, it does, possibly because of the scrollbar, |
This will help me with tables that have a lot of data 👍 |
Not sure what is happen, but the code works fine with jQueryUI and Bootstrap5 css. I have little fine tune the code where we add the wrappers automatically . The code that works for me: $.jgrid.extend({
togglefullSize: function() {
let t = $(this);
let gbox = $("#gbox_" + t.attr('id'));
let gboxw = gbox.width();
if(!gbox.parent().parent().hasClass('gridresize')) {
gbox.wrap("<div></div>");
gbox.parent().wrap("<div style='width:"+gboxw+"' class='gridresize'></div>")
}
let cl = 'ui-jqgrid-full-size',
gb = gbox.parent();
if (!gb.hasClass(cl)) {
if(t[0].p.height === 'auto' || t[0].p.height === '100%') {
t[0].p.height="200";
}
gb.data('h', gb.height());
gb.css('height', '');
} else {
gb.height(gb.data('h'));
gb.data('h', '');
}
gb[gb.hasClass(cl) ? 'removeClass' : 'addClass'](cl);
t.resizeGrid();
return t;
}
}); and in this case you will need to rmove the html grid wrapper. |
This will allow the grid to occupy the entire screen size, it would help to review the rows
Example: https://jsfiddle.net/690oehLm/ (Click on
Expand
)The example is just a proof of concept, it needs work, for example on
height:auto
The text was updated successfully, but these errors were encountered: