1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    1
    Vote Rating
    0
    vigneshRaj is on a distinguished road

      0  

    Default how to get the value of the selected row in editable grid.

    how to get the value of the selected row in editable grid.


    There will be a + image in last cell of the current grid row,if we clicked it then a new row of grid will be added at the last only,but my task is to add a grid row very next to the clicked grid.I planned to get the value of the current grid and add 1 to it so that the new row of grid will be created very next to the current grid.could u please tell me how to get the value of the clicked grid row?

    my code:

    var rowCount = ${gridObject}.getStore().getCount();
    ${gridObject}.getStore().insert(rowCount, p_${gridName});
    ${gridObject}.getView().refresh();
    ${gridObject}.startEditing(rowCount, 0);



    My plan is,

    var rowValue = ${gridObject}.getStore()._________;
    ${gridObject}.getStore().insert(rowValue+1, p_${gridName});
    ${gridObject}.getView().refresh();
    ${gridObject}.startEditing(rowValue, 0);



    how to get the value of the current grid row?


    -vigneshRaj

  2. #2
    Sencha User PhiLho's Avatar
    Join Date
    Nov 2011
    Location
    Near Paris, France
    Posts
    139
    Vote Rating
    1
    PhiLho is on a distinguished road

      0  

    Default


    Are you sure this is an Ext GWT 3 question? It looks more like JavaScript than Java...

    These grouped forums are sometime confusing... (and make hard to search something specific to a product).

  3. #3
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,731
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    You can define how a cell in a column is drawn by assigning a cell to the column. To get access to the entire model in that cell, make sure you are defining the column to use the entire model - something like this, assuming the model for the row is called MyModel

    ColumnConfig<MyModel, MyModel> column = new ColumnConfig<MyModel, MyModel>(new IdentityValueProvider<MyModel>());

    The ColumnConfig acts on a row of type MyModel, and the column wants access to that row directly, not a property in the row.

Thread Participants: 2

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