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
Help needed with saveRow
06/08/2008
09:23
Avatar
max-williams
Member
Members
Forum Posts: 8
Member Since:
01/08/2008
sp_UserOfflineSmall Offline

When a row is saved, i want to call this url:

/schedule_entries/:id

where :id is the value of the first column (which is called id).This is a hidden column and is also set to uneditable.  This first column also has key: true in it's options.

I feel like this should be simple, but when i send the request, the only parameters passed through are the row's position number (eg 1 for the first row in the table), in an 'id' parameter, and the contents of the cells in columns set to editable.

I've tried various experiments with the saveRow function, but can't work it out, can anyone help?

thanks

max

here's my full colModel, it's a bit long.

[code]

colModel : [

{resizable: false, edittype: 'textarea', hidden: true, width: 30, index: 'id', editoptions: {style: 'width:22px', rows: '5'}, align: 'left', name: 'id', sortable: false, key: true, editable: false},
{resizable: false, edittype: 'textarea', hidden: true, width: 30, index: 'asset_id', editoptions: {style: 'width:22px', rows: '5'}, align: 'left', name: 'asset_id', sortable: false, editable: false},
{resizable: false, edittype: 'textarea', hidden: false, width: 20, index: 'position', editoptions: {style: 'width:12px', rows: '5'}, align: 'left', name: 'position', sortable: false, editable: false},
{resizable: false, edittype: 'textarea', hidden: false, width: 80, index: 'asset_name', editoptions: {style: 'width:72px', rows: '5'}, align: 'left', name: 'asset_name', sortable: false, editable: false},
{resizable: true, edittype: 'textarea', hidden: false, width: 70, index: 'time', editoptions: {style: 'width:62px', rows: '5'}, align: 'left', name: 'time', sortable: false, editable: true},
{resizable: true, edittype: 'textarea', hidden: false, width: 100, index: 'groupings', editoptions: {style: 'width:92px', rows: '5'}, align: 'left', name: 'groupings', sortable: false, editable: true},
{resizable: true, edittype: 'textarea', hidden: false, width: 280, index: 'activities', editoptions: {style: 'width:272px', rows: '5'}, align: 'left', name: 'activities', sortable: false, editable: true},
{resizable: true, edittype: 'textarea', hidden: false, width: 120, index: 'notes', editoptions: {style: 'width:112px', rows: '5'}, align: 'left', name: 'notes', sortable: false, editable: true}],

 [/code]
06/08/2008
13:56
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

How do you send the request?

If this is additional request you can use aftersavefunc to which is passed

the rowid. Then you can use getRowData method to obtain the needed

values and send them to your request.

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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