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,640
    Vote Rating
    80
    Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice Colin Alworth is just really nice

      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

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