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
Force added row in inline edit to appear before current row
15/12/2011
11:42
Avatar
kobruleht
Member
Members
Forum Posts: 144
Member Since:
05/05/2011
sp_UserOfflineSmall Offline

jqGrid 4.3 allows to add new row using inline edit.

Inline navigator demo in http://trirand.com/blog/jqgrid.....qgrid.html
Shows that after add command grid is scrolled to top and added row appears in top of grid.
This is confusing.

How to force added row to appear before current row?

Thi sis posted also in

http://stackoverflow.com/quest.....le-of-grid

15/12/2011
12:31
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Hello,

I answerd to your question just now on the stackoverflow.

@Tony: I find the suggestion good and in the answer, which is oriented on form editing, I already suggested to extend the functionalite of the addRowData to support new 'afterSelected' and 'beforeSelected' values (additionally to existing 'first', 'last', 'after' and 'before') of the position parameter.

I suggest to extend the functionality of addRowData to support the new 'afterSelected' and 'beforeSelected' values of the position parameter.

Best regards
Oleg 

15/12/2011
12:37
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

This post is not here - my bad.

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.

15/12/2011
12:41
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

And for the other questions in stackoverflow please read here – the position can be determined with parameter.

http://www.trirand.com/jqgridw.....ing#addrow

I kindly suggest to read the docs, instead that sometime I do not have time to update it

Kind Regards

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.

15/12/2011
12:55
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Hello Tony,

I know that

Inside of both addRow

$($t).jqGrid('addRowData', p.rowID, p.initdata, p.position);

(see here) and editGridRow

$($t).jqGrid("addRowData",ret[2],postdata,p.addedrow);

(see here) call addRowData with tree parameter, so it is impossible to use 'after' and 'before' as the value of position parameter.

Moreover adding the row before or after the last selected row can be interesting independent of the addRow and editGridRow methods. So I think that intruduction of new values 'afterSelected' and 'beforeSelected' of the position parameter cen be helpful.

Best regards
Oleg 

15/01/2012
22:37
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Hello Tony,

the implementation of the suggested feature is very easy. One can ovewrite the code of like I suggested in the answers here and here, but the best will be if one modifies some lines of the original addRowData method to include support new 'beforeSelected' and 'afterSelected' value of the position parameter.

I think that the feature will be very practical for many users especially after introducing of inlineNav method.

Best regards
Oleg 

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
90 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