Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ListGrid selection and row number selected

    Is there any way to get the row number selected (of each selected row) when I get the selection by getSelectedRecords or getSelection method.
    I mean if I have a listgrid this way:
    Row number Field/s
    1 - A
    2 - B
    3 - C
    4 - D
    5 - E
    6 - F
    7 - G
    ...
    n Z

    If there are selected B, C, F and G, I can get it by getSelectedRecord, but... Can I know once I retrieved the records so, which row number has each one? Can I know that the B record was row number 2, F record was row number 6 and so on?
    If not, what should be the way without to do through events functions?


    Thanks in advance.



    We are working under:
    v9.1p_2014-05-31/PowerEdition Development SC and IExplrorer 10.0.9200 navigator, Eclipse Helios and Tomcat 7.0.28

    #2
    Use getRecordIndex().

    Comment


      #3
      Ah, I forgot to mention that the listGrid is with the following attributes setted:

      selectionAppearance:"checkbox"
      selectionType:"simple"

      Comment


        #4
        Doesn't make a difference, getRecordIndex() still applies.

        Comment


          #5
          Excuse me, I didnīt see your answer, that is I was looking for.
          Thanks a lot.

          Comment

          Working...
          X