1. #1
    Sencha User davisty's Avatar
    Join Date
    Mar 2010
    Location
    Spanish Fort, Al
    Posts
    270
    Vote Rating
    1
    davisty is on a distinguished road

      0  

    Default Newbie question about getting editorgrid row index

    Newbie question about getting editorgrid row index


    Hello,

    Im trying to copy a getselected row to a new row.

    How do I pass the getselected rowindex to my store.insert? Right now Im using the "0" row index to insert at the top.

    Be gentle ...Ive spend hours trying to figure this out ...

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,614
    Vote Rating
    327
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    Your question is a little difficult to understand. It might have helped to have included a couple of short code snippets to show what you're currently doing.

    In many cases where you need access to the rowIndex it is already available as one of the arguments to whatever handler you are in. However, if all you have is the record then you can call store.indexOf(record) to find out its position in its current store.

  3. #3
    Sencha User davisty's Avatar
    Join Date
    Mar 2010
    Location
    Spanish Fort, Al
    Posts
    270
    Vote Rating
    1
    davisty is on a distinguished road

      0  

    Default


    store.indexOf worked.

    Thank You. I knew there hadtobe a way to do it.

    I ddint think about looking in the data class ...

Thread Participants: 1