1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    3
    Vote Rating
    0
    nani123 is on a distinguished road

      0  

    Default Unanswered: Editable grid with combo box get key..... its urgent

    Unanswered: 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,

  2. #2
    Sencha User existdissolve's Avatar
    Join Date
    Jan 2010
    Location
    Kansas
    Posts
    514
    Answers
    31
    Vote Rating
    82
    existdissolve is just really nice existdissolve is just really nice existdissolve is just really nice existdissolve is just really nice existdissolve is just really nice

      0  

    Default


    Quote Originally Posted by nani123 View Post
    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.

    http://jsfiddle.net/existdissolve/a3grm/

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar