Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #104703
    gunti anji
    Participant

    Using React  “grid.current.getSelectedRows() ” returning empty array. Could you please suggest is there any way to get selected rows by doing rangeSelection

     

    #104706
    Markov
    Keymaster

    Hi,

    getSelectedRows returns an array when there are selected rows. Otherwise it returns an empty array.

    Regards,
    Markov

    #104713
    gunti anji
    Participant

    Below is the code sandbox url for react smart grid. I have tried selecting 3 rows using range selection. all of my selected rows data printing empty array
    https://codesandbox.io/s/rough-water-1lh72c?file=/src/App.js

    #104714
    Markov
    Keymaster

    Hi,

    In the given sample, you use cells selection so you should use getSelectedCells() method, not getSelectedRows() which is for rows selection.

    Regards,
    Markov

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.