Announcement

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

    ListGrid.selectRecord

    Currently, we are setting the selected records as part of the result set by setting isSelected property for each row. We now have a need for changing selection dynamically without having to re-fetch the data. I see that there is a ListGrid.selectRecord but it only accepts the record object or the index. Is there a helper function that takes the primary key of the record? Or do I have to implement this functionality myself?

    #2
    Use grid.data.find(). ResultSet implements List, which has a ton of convenient find*() variations.

    Comment


      #3
      Great! Thanks a lot!

      Comment


        #4
        I've noticed that for listgrids that have grouping, the data is of type Tree - which does not support find*. How do I accomplish the above in this case?

        Comment


          #5
          See listGrid.originalData

          Comment


            #6
            Thanks. That worked.

            Comment

            Working...
            X