Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
addRowData to subgrid
18/07/2008
04:54
Avatar
julizar
julizar
Member
Members
Forum Posts: 32
Member Since:
12/06/2008
sp_UserOfflineSmall Offline

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.

18/07/2008
05:28
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

18/07/2008
05:30
Avatar
julizar
julizar
Member
Members
Forum Posts: 32
Member Since:
12/06/2008
sp_UserOfflineSmall Offline
From where can I get the fix?
Greetings
18/07/2008
05:39
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

18/07/2008
06:28
Avatar
julizar
julizar
Member
Members
Forum Posts: 32
Member Since:
12/06/2008
sp_UserOfflineSmall Offline

No it does not fix the problem.

18/07/2008
06:56
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

18/07/2008
08:19
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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.

18/07/2008
08:49
Avatar
julizar
julizar
Member
Members
Forum Posts: 32
Member Since:
12/06/2008
sp_UserOfflineSmall Offline

Yes it works thanks.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 496

Currently Online:
20 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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information