Forum
06:02
Hello Tony,
i'm using jqGrid 3.5.2 and think i've found a bug. When adding a new row 'before' the currently first row all collumns lose their original width setting.
You can see what i mean in this picture:
http://img12.imageshack.us/img.....atabug.jpg
The first part shows the normal layout, the second part shows what happens when I 'move' the second row up so that it becomes the first row. When i move the row back down the layout becomes normal again. The 'move' happens with this function:
Singleton.jqGrid.moveUp = function(gridSelector) { // moveup all selected rows
var jqGrid = $(gridSelector);
var selection = jqGrid.getGridParam('selarrrow').slice(0);
var alle = jqGrid.getDataIDs();
var sortedSelection = new Array();
$.each(alle, function(i, val) {
if ($.inArray(val, selection) != -1) {
sortedSelection.push(val);
}
});
for (var i in sortedSelection) {
var id = sortedSelection[i];
var positie = $.inArray(id, alle);
if (positie != 0) // element is at top already
{
var aboveRowId = jqGrid.getDataIDs()[positie - 1];
if ($.inArray(aboveRowId, sortedSelection) == -1) {
var movingRow = jqGrid.getRowData(id);
jqGrid.delRowData(id);
jqGrid.addRowData(id, movingRow, 'before', aboveRowId);
jqGrid.setSelection(id);
}
}
}
}
In previous versions of jqgrid this worked without problems, and now as longs as the move doesnt require adding an element before the first row it's good too.
Please have a look into this problem,
thanks a lot in advance,
Jan
03:54
Moderators
30/10/2007
Hello,
Thanks for this. Fixed in GitHub.
Best Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
12:54
Moderators
30/10/2007
Hello,
Will look at this again. Thanks
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
83 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66