|
jaimi
|
 |
« on: September 21, 2012, 10:59:40 PM » |
|
I want to preset a field with a value and this value should be sent to the saveUrl-script. When I do it like this the value is set but it doesn't sent it.
{field:'OLT40A002T_KEY',title:'ProjektKey' ,width:080,sortable:'true', formatter : function(value, row, index){return $('#OLT40A002T_KEY').val();} },
I tried this but the value won't be set: {field:'OLT40A002T_KEY',title:'ProjektKey' ,width:080,sortable:'true', editor : {type:'text'}, formatter : function(value, row, index){return $('#OLT40A002T_KEY').val();} },
I tried this as well:
{field:'OLT40A002T_KEY',title:'ProjektKey' ,width:080,sortable:'true', editor : { type:'numberbox', options: { //formatter : function(value){return /*$('#OLT40A002T_KEY').val()*/28;} value : 888 } }
The default value is not set. Is this a bug? When I activate the formatter the value is displayed but it is not sent to the saveUrl. It is really tricky. Can anyone give me a hint?
What is the solution?
|