1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    32
    Vote Rating
    0
    Santosh Dhumale is on a distinguished road

      0  

    Default Grid editor not storing value.

    Grid editor not storing value.


    I have a grid editor where I have column under column.
    And I dont used ant tbar to add the record.

    Because my grid have data from database and user onlu can update this record.

    And thid grid has columns under columns.


    Please find image


    but when I try to change the value after clicking update button of rowediting plugin the value disappears
    and the previous value is set.

    and changing any column value the value is set to the OPERTAING CONDITION TEMP COLUMN


    Please help to resolve this issue.

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default


    Hi Santosh,

    Your image not attached properly, anyway see the sample code for roweditor plugin-
    Code:
    Ext.create('Ext.data.Store', {
        storeId: 'simpsonsStore',
        fields: ['name', 'email', 'phone'],
        data: [
            {
            "name": "Lisa",
            "email": "lisa@simpsons.com",
            "phone": "555-111-1224"},
        {
            "name": "Bart",
            "email": "bart@simpsons.com",
            "phone": "555-222-1234"},
        {
            "name": "Homer",
            "email": "home@simpsons.com",
            "phone": "555-222-1244"},
        {
            "name": "Marge",
            "email": "marge@simpsons.com",
            "phone": "555-222-1254"}
        ]
    });
    
    Ext.create('Ext.grid.Panel', {
        title: 'Simpsons',
        viewConfig: {
            layout: 'fit'
        },
        store: Ext.data.StoreManager.lookup('simpsonsStore'),
        columns: [
            {
            header: 'Name',
            dataIndex: 'name',
            editor: 'textfield'},
        {
            header: 'Detail',
            columns: [{
                header: 'Email',
                dataIndex: 'email',
                editor: {
                    xtype: 'textfield',
                    allowBlank: false
                }},
            {
                header: 'Phone',
                dataIndex: 'phone'}]}],
        selType: 'rowmodel',
        plugins: [
            Ext.create('Ext.grid.plugin.RowEditing', {
            clicksToEdit: 1
        })
            ],
        height: 200,
        width: 400,
        renderTo: Ext.getBody()
    });
    Here is working sample example- http://jsfiddle.net/maneeshgo/DR6ry/
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi