I see. So this is not likely to be a useful approach for the short term. Is there a workaround?
I want something similar. Can the functionality from the “custom buttons and forms” help here?
I'm currently looking at something like this (call with resizeColumns('#yourgrid', ['colname1', 'colname2']):
I take that as a challenge ![]()
I'm getting closer: I can calculate an approximation of the width for a specific column by finding the width of, for example, the first cell:
and in loadComplete:
$('#measure').html('' + $('#treegrid2 tbody tr:first td:eq(1)').text() + '');
alert($('#measure span').width());
I realize that the cell selection should use getCell, but that always returns false for me, I'll keep poking at that. So how do I use this width value to set the width of a column after load? Between http://www.trirand.com/jqgridw…..;s=getcell I don't see anything that fits the bill.
Excellent! Thanks!
I do this by just sticking “fixed:true” in the colmodel for this column, right? I have the colmodel below, but the rank column still allows resizing. Clues appreciated. I'm on 3.6:
Including the language file fixes this too.
You're right, of course. Sorry I glanced over that part. It works perfectly now.
Many thanks,
Emile
My mistake, the problem is also present in FF, don't know how I overlooked this.
Live demo of the problem is at http://jqgrid.auto.iris-advies.nl/
Thanks,
Emile
The import/export modules will work for option 3, but I think SteveT would prefer the grid to auto-size the columns, much like a regular table would. I would also love to see a way to accomplish this, or at least a way to automate it for my users.
I think Google Chrome has the same issue: Uncaught TypeError: Cannot read property 'integer' of undefined
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top