EasyUI Forum
April 27, 2024, 11:19:16 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: populate combo via json  (Read 12304 times)
fcodebue
Newbie
*
Posts: 5



View Profile WWW Email
« on: September 28, 2011, 08:01:03 AM »

I'm try to populate combo via json and using it in a grid
look at code...

Code:
...

      columns:[[
        {field:'cb', title:'',checkbox:true, width: 50},
        {field:'id', title:'id', width: 50},
        {field:'codice', title:'codice', width: 50},
        {field:'riga', title:'riga', sortable:true, width: 50},
        {field:'iva_codice', title:'IVA', sortable:true, width: 150,   
editor:{
type:'combobox',
options:{
valueField:'codice',
textField:'descrizione_1',
      url:'c_op/aliquote_iva',
required: true
}
}                 
        },
        {field:'imponibile_valore_valuta', title:'imponibile', sortable:true, width: 120, align: 'right',
          editor: {type:'numberbox', options:{ precision:2}}},
        {field:'conto_codice', title:'mastrino', width: 90, editor:'text'},
        {field:'descrizione_1', title:'descrizione', width: 250, editor:'text'}
      ]],
...


what's worng?
Logged

Codebue Fabio
---------------------
P-Soft
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: September 29, 2011, 05:57:35 PM »

It seems there is no problem. Usually you should define the 'formatter' function to format your field value when end the editing action.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!