Ok, I figured out how to set the $ID_1 value in the form!
beforeShowForm : function(form_id)
{
/*
|
1 |
Here you go:<br /><br /> |
colNames:['Actions','Match ID','Squad ID','Season ID','Squad','Season','Date','Opponent','Site'],
colModel:[
{name:'act',index:'act',width:70,sortable:false},
{name:'match_id',index:'match_id',hidden:true,width:55,key:false,editable:true,editoptions:{readonly:true,size:10}},
{name:'squad_id',index:'squad_id',hidden:true,width:55,key:false,editable:true,editoptions:{readonly:true,size:10}},
{name:'season_id',index:'season_id',hidden:true,width:55,key:false,editable:true,editoptions:{readonly:true,size:10}},
{name:'squad',index:'squad',width:90,editable:true,edittype:"select",editoptions:{value:"1:Varsity;2:Junior Varsity;3:Freshmen"}},
{name:'season',index:'season',width:100,editable:true,edittype:"select",editoptions:{value:"1:2005-2006;2:2006-2007;3:2007-2008;4:2008-2009;5:2009-2010;6:2010-2011;7:2011-2012;8:2012-2013;9:2013-2014"}},
{name:'date',index:'date', width:100, align:"right", editable:true,sorttype:"date"},
{name:'opponent',index:'opponent', width:150, align:"center", editable:true,editoptions:{size:50}},
{name:'site',index:'site', width:150,align:"center", editable:true,editoptions:{size:50}}
],
|
1 |
<br /> |
Tony,
This is under the discussion forum, not the help forum. I am want to discuss how the keys are working with the select and then make some changes to imrove the product.
As to your comment; The php code that generates the list correctly
formats
OK, I got it…
the extraparam needs to be in the “saveRow” , not “editRow”!
Syntax is: {'oper':'edit'}
Thanks!
Tony,
Thanks! I think the names are not as intuitive as they could be. But it does do what is required. I didn't want to show the ID column in either the grid or edit form so I added hidden:true. It works fine!
Thanks for taking the time… I'm just starting to look at jqgrid, but I do like it plenty.
Thanks Again!
Barry
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top