Comments (10)
To replicate all you should need to do is make a grid with several columns, then hide the first row. However, if needed I can supply a page that demonstrates the issue. I just tested against the latest source from github and that didn't resolve the issue.
from jqgrid.
Hello,
This is true. Also we need to make more deeper solution. When the standard methods are used there is no problem - like addRowData and delRowData. This bug need to be fixed with care.
Thanks again.
Best Regards
Tony
from jqgrid.
Thanks for the quick response. I will try to use addRowData/delRowData for the moment instead of show/hide as a workaround.
from jqgrid.
Maybe a suitable fix to this issue would be to make use of the colgroup/col elements inside the data table rather than setting widths on the first row of data.
from jqgrid.
Hello,
Thanks for the suggestion. This work well in all browsers except .. as you can imagine in IE.
Best regards
Tony
from jqgrid.
What limitations are you facing? I just did a simple test updating col elements' widths and things seem to work. See: http://chipt.com/tests/colgroup.html
from jqgrid.
Hello,
Thanks.
In simple table this works. Try to implement UI theming
Regards
Tony
from jqgrid.
it's yeas to fix:
on line http://github.com/tonytomov/jqGrid/blob/master/js/grid.base.js#L1690
it's necessary to change how row is selected.
instead of var r = this.rows[0] is necessary to use $("> tbody > tr:visible:first", this);
where 'this' is table div.
I wrote custom function to do this.
$.jgrid.extend({
updateColumnsNotHide: function() {
var grid = this[0].grid;
var r = $("> tbody > tr:visible:first", this);
if (r) {
$("td", r).each(function(k) {
$(this).css("width", grid.headers[k].width + "px");
});
}
return this; }});
from jqgrid.
when you hide one row, you need update alt-class ;)
$.jgrid.extend({
updateAltRowStyle: function() {
var $t = this[0].p;
if ($t.altRows === true) {
var cn = $t.altclass;
$("> tbody > tr", this).removeClass(cn);
$("> tbody > tr:visible:odd", this).addClass(cn);
}} });
that's all ;)
from jqgrid.
It is fixed now
from jqgrid.
Related Issues (20)
- Header offsetting from the current position HOT 5
- Proposal for new feature - In-place Grid Update HOT 4
- Proposal for improving feature - Dynamic values for "select" formatter HOT 5
- The latest version does not work properly in IE11 HOT 1
- SUGGESTION: Combined export of multiple grids to a single Excel workbook. HOT 2
- config “ coloptions ” is invalid parameter HOT 4
- Method "saveRow" when url is "clientArray",errorfunc or successfunc never fire HOT 4
- Proposal - Get temporary rowData while editing HOT 3
- Problem with custom unformat for simple text columns HOT 2
- Checkbox columns in Cell-Edit mode HOT 3
- When a filter has a default values, all celles after it take this value in case of filter reset HOT 1
- is `String.prototype.substr` deprecated?
- jqGridImport & jqGridExport working synergy HOT 6
- delGridRow errorTextFormat option wont effect when del option returns 500 error HOT 1
- Row number beginning from 2. HOT 5
- `showSummaryOnHide` problem when collapse last subgroup HOT 2
- rownumber start from 2 HOT 1
- editGridRow:The background of the opened window is transparent HOT 1
- Html syntax is wrong closing the table in buildColMenu function HOT 1
- subGrid code cannot handle complex IDs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jqgrid.