Forum


Greetings.
I have a grid with subgrid, and I added custom buttons to these grids
to perform addRowData, one for main grid and one for the subgrid.
The problem is when i clicked on the "+" to expand the subgrid and
then add row to the main grid from his addrow button.
There is an new row on the main grid wich have + for the subgrid
and a new row in the subgrid with same function as main grids
new row.
05:28

Moderators
30/10/2007

Thank's. Fixed
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.
05:39

Moderators
30/10/2007

There are a lot things to do - the bug fix release will be done 21-22 July.
If you can't wait - open grid.base find addRowData method
then find
if (pos === "last") $("tbody",t.grid.bDiv).append(row);
else $("tbody tr:eq(0)",t.grid.bDiv).after(row);
replace with
if (pos === "last") $("tbody:first",t.grid.bDiv).append(row);
else $("tbody:first tr:eq(0)",t.grid.bDiv).after(row);
Let me known if all is OK
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.
06:56

Moderators
30/10/2007

Humm,
Will check it again. Thank you
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.
08:19

Moderators
30/10/2007

Here is the fix
if (pos === “last”) $(t.rows[t.rows.length-1]).after(row);
else $(t.rows[0]).after(row);
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:
61 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