Thank you in advance Rumen….
The problem solved.
Kostis
I'm sorry for this post, it was my own mistake, I solved the problem, it was due to a wrong call to setGridWidth(…,true); which I discovered because of Javascript errors in my IE page. So no bug!
The issue seems to be that the search form window is behind the modal window that transparently covers the grid. How do I get the search form to be on top of the modal window.
Thanks, this
Thanks, I will give it a go.
to emoleon: Thanks, it helped me very much!
tony said:
var gridWidth = parseInt($('#mailinfoGrid').getGridParam(”width”));
$('#mailinfoGrid').setGridWidth(gridWidth+0.01,true);The grid does not change if you try to set the same width (A bug wich will be corrected soon);
Lol, I just discovered it when you posted the solution! Thanks a lot for your help!
I tried something else, the only difference is that I get the old grid width and I set the new grid width to the old value -1. This does stretch the columns. I think because I set the width to the same width it had before, the columns didn't stretch. Weird, but it works now!
var gridWidth = $('#mailinfoGrid').getGridParam(“width”);
$('#mailinfoGrid').setGridWidth(gridWidth-1,true);
I tried that, and because the width of my grid has to stay the same, I just have to get the gridWidth and then set it again, but with shrinkToFit=true:
var gridWidth = $('#mailinfoGrid').getGridParam(“width”);
$('#mailinfoGrid').setGridWidth(gridWidth,true);
But this doesn't stretch the columns 🙁 it does nothing! It's really weird, but I think it's because shrinkToFit is initially set to false on construction of my jqgrid
Thanks for the reply. I tried your code, but it makes my grid as wide as the sum of the columns, but I want the opposite, i want the grid width to stay the same, but each column should stretch to “fill” the grid.
I'm not very familiar with jQuery, so I tried out some things in regular Javascript:
ok….I've finally come up with a work able solution to end this saga.
if you search the web, the issue of trying to use jqGrid with multiple selects that dynmically load based on the values of a chained series of select elements is pretty common.
tony said:
Hello Romyn,
Not sure If I include this fix. It works ok when you have shrinkToFit set to false, but when this parameter is set to true we have a empty space bettwen the last row and the pager, which does not look good. I will publish this solution in HOWTO section of the grid, but will try to search a better one.
Regards
Tony
Well, something I did to tweak this was to also only apply this fix for IE7 and lower, IE8 has this issue fixed.
/* ie browser fix */
if ($.browser.msie && $.browser.version<8) {
$a = $('.ui-jqgrid .ui-jqgrid-bdiv');
$a.css('padding', '0 0 15px 0');
if(ts.p.height == '100%'){
$a.css('overflow-y', 'hidden');
}
}
/* end ie browser fix */
Thank you for the quick reply!
I would download the latest version, but I can only use version 3.5.2 because I use a new web application framework which comes packaged with jqgrid 3.5.2. So normally I'd have to wait until the framework uses another version of jqgrid, but I think that could take a while. I suppose there is no other “quick fix” I could use until the framework is updated?
Sorry, my previous post was a little bit wrong. I had bad understanding of what is TreeGrid. Actually for our project we need rows grouping by columns: /blog/?page_id=393/feature-request/line-grouping-nesting-breaking/#p10410
Hello Tony!
Is there any way to implement this feature nearest time? At the moment we are in the middle of investigation in order to choose datagrid for our new project, and we was going to choose jqGrid… But one of the main requirements in our project is ability to group rows by columns.
Unfortunately if this feature will not be implemented – we will have to choose another solution 🙁
But I really like jqGrid and hope to find the solution…
P.S. Another online demo's from different products (maybe to better understand the idea and usefullness of the feature):
– http://dhtmlx.com/docs/products/dhtmlxGrid/samples/07_extended_modes/01_pro_group.html
– http://demos.telerik.com/aspnet-ajax/grid/examples/groupby/outlookstyle/defaultcs.aspx
– http://www.treegrid.com/treegrid/www/
With respect,
Andrew TheBit Halyasovskyy
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top