Announcement

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

    Row Number vs Record in ListGrid

    SmartClient Version: v9.1p_2014-09-17/PowerEdition Deployment (built 2014-09-17)

    I am using showRowNumbers() on my list grid. Works fine.

    When someone operates on a group of rows I want to show the user the result of the operation, per row number as displayed in the underlying grid.

    So if the user operates on 2 or 3 randomly selected rows in the grid, and a server side operation is initiated, I want to be able to tell the user that record row number 4 was good, row number 18 bad, and row number 21 good.

    How can I retrieve the auto created row number from the grid, if I know the record? Is it simply the getRecordIndex( Record x) API?
    Does this work even when the user has re-sorted the grid?

    Thanks

    #2
    getRecordIndex() will give you the row number in the current visual order, so if that's what you want, it will work with sorting, yes.

    Comment


      #3
      Thanks that's the confirmation I was looking for.

      Comment

      Working...
      X