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
onClickSubmit
31/10/2008
11:24
Avatar
will
Member
Members
Forum Posts: 8
Member Since:
23/10/2008
sp_UserOfflineSmall Offline

The onClickSubmit event is not firing and I can't see why. Any help appreciated!

$("#order_hist").jqGrid({ url:'order.aspx?custid='+0, datatype: 'json', mtype: 'GET', colNames: [

'Order ID','Order Date','Order Status','Quantity','Vintage','Display Name','Price','Total'

],

colModel: [ {name:

'orderID', index:'orderID'

, width:75},

{name:

'orderDate', index:'orderDate'

, width:90},

{name:

'orderStatus', index:'orderStatus', width:120,editable:true,edittype:'select',editoptions: {value: "SC:Shopping Cart;P:Picking;SH:Ship Hold;F:Fulfilled"

}},

{name:

'quantity', index:'quantity'

, width:70},

{name:

'vintage', index:'vintage'

, width:60},

{name:

'displayname', index:'displayname'

, width:250},

{name:

'price', index:'price'

, width:60},

{name:

'total', index:'total'

, width:60}

],

onClickSubmit :

function

() {

alert(

'in onClicksubmit'

);

var

retarr = {};

var sr = $("#order_hist").getGridParam('selrow'

);

rowdata = $(

"#order_hist"

).getRowData(sr);

retarr = {orderID:rowdata.orderID};



return

retarr;

},

pager: $(

"#order_hist_pager"

), rowNum:10, rowList:[10,20,30],

sortname:

'orderID', sortorder: "orderID", viewrecords: true, imgpath: 'images/grid_images'

,

caption:

"Order History",height:"150px",editurl:

'order.aspx'


});

01/11/2008
04:31
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Please read carefully the docs.

onClickSubmit is not a part of grid.base.js module, but is a part of grid.formedit.js module

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:
82 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