Editable grid with combo box get key..... its urgent
Hi, iam new to extjs 4.1
i created new panel with combo box and text fields, at the time of loading hit the DB and get the values,
there is one add button once i chick that add button that panel values are assign to grid rows.
that is editable grid up to fine,
there is save button what ever in grid that will store in DB,
here is the problem its means
panel combo have key and value,
but in grid combo i got only value,
Requirement is that grid combo key should be store in db,
i add the same store to gird combo also.. but i did not get perticular display value key.
how can i get the key of that row combo box ,
please any one help me.. its urgent,
Are you saving the model instances in the store, or are you just culling the values from the row? If you do something like store.getModifiedRecords(), you'll get the full model data back which can then either be saved via the proxy, or transformed however you need it to be. And since it's the full model, you'll have the key/value pair for each field configured for the model.
Originally Posted by nani123