Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
wiki:inline_editing [2011/12/12 11:58]
tony
wiki:inline_editing [2012/09/05 13:23]
paulodiogo
Line 363: Line 363:
       {name:'​name',​index:'​name',​ width:​150,​editable:​ true, editoptions:​{size:"​20",​maxlength:"​30"​}},​       {name:'​name',​index:'​name',​ width:​150,​editable:​ true, editoptions:​{size:"​20",​maxlength:"​30"​}},​
       {name:'​stock',​index:'​stock',​ width:60, editable: true, edittype:"​checkbox",​editoptions:​ {value:"​Yes:​No"​}},​       {name:'​stock',​index:'​stock',​ width:60, editable: true, edittype:"​checkbox",​editoptions:​ {value:"​Yes:​No"​}},​
-      {name:'​ship',​index:'​ship',​ width:90, editable: true, edittype:"​select",​ editoptions:​{value:"​FE:​FedEx;​IN:​InTime;​TN:​TNT;​AR:​ARAMEX"​}}, ​                      +      {name:'​ship',​index:'​ship',​ width:90, editable: true, edittype:"​select"​,​formatter:'​select'​, editoptions:​{value:"​FE:​FedEx;​IN:​InTime;​TN:​TNT;​AR:​ARAMEX"​}}, ​                      
       {name:'​note',​index:'​note',​ width:200, sortable:​false,​editable:​ true,​edittype:"​textarea",​ editoptions:​{rows:"​2",​cols:"​10"​}} ​                     ​       {name:'​note',​index:'​note',​ width:200, sortable:​false,​editable:​ true,​edittype:"​textarea",​ editoptions:​{rows:"​2",​cols:"​10"​}} ​                     ​
               ],               ],
Line 377: Line 377:
   });   });
   var mydata2 = [   var mydata2 = [
-    {id:"​12345",​name:"​Desktop Computer",​note:"​note",​stock:"​Yes",​ship:"​FedEx"}, +    {id:"​12345",​name:"​Desktop Computer",​note:"​note",​stock:"​Yes",​ship:"​FE"}, 
-    {id:"​23456",​name:"​Laptop",​note:"​Long text ",​stock:"​Yes",​ship:"​InTime"}, +    {id:"​23456",​name:"​Laptop",​note:"​Long text ",​stock:"​Yes",​ship:"​IN"}, 
-    {id:"​34567",​name:"​LCD Monitor",​note:"​note3",​stock:"​Yes",​ship:"​TNT"}, +    {id:"​34567",​name:"​LCD Monitor",​note:"​note3",​stock:"​Yes",​ship:"​TN"}, 
-    {id:"​45678",​name:"​Speakers",​note:"​note",​stock:"​No",​ship:"​ARAMEX"}, +    {id:"​45678",​name:"​Speakers",​note:"​note",​stock:"​No",​ship:"​AR"}, 
-    {id:"​56789",​name:"​Laser Printer",​note:"​note2",​stock:"​Yes",​ship:"​FedEx"}, +    {id:"​56789",​name:"​Laser Printer",​note:"​note2",​stock:"​Yes",​ship:"​FE"}, 
-    {id:"​67890",​name:"​Play Station",​note:"​note3",​stock:"​No",​ ship:"FedEx"}, +    {id:"​67890",​name:"​Play Station",​note:"​note3",​stock:"​No",​ ship:"FE"}, 
-    {id:"​76543",​name:"​Mobile Telephone",​note:"​note",​stock:"​Yes",​ship:"​ARAMEX"}, +    {id:"​76543",​name:"​Mobile Telephone",​note:"​note",​stock:"​Yes",​ship:"​AR"}, 
-    {id:"​87654",​name:"​Server",​note:"​note2",​stock:"​Yes",​ship:"​TNT"}, +    {id:"​87654",​name:"​Server",​note:"​note2",​stock:"​Yes",​ship:"​TN"}, 
-    {id:"​98765",​name:"​Matrix Printer",​note:"​note3",​stock:"​No",​ ship:"FedEx"}+    {id:"​98765",​name:"​Matrix Printer",​note:"​note3",​stock:"​No",​ ship:"FE"}
     ];     ];
   for(var i=0;​i<​mydata2.length;​i++)   for(var i=0;​i<​mydata2.length;​i++)

QR Code
QR Code wiki:inline_editing (generated for current page)