Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #103080
    Joko Pitoyo
    Participant

    what difference getSelectedRows with getSelection?

    no api example for above function?

    #103081
    Joko Pitoyo
    Participant

    <div>
    <div>getSelectedRows(); this doesnot return selected rows but return array index at index=0 and data index=1, why?</div>
    <div></div>
    </div>

    #103083
    admin
    Keymaster

    Hi,

    From the Grid API docs(https://www.htmlelements.com/docs/grid-api): getSelectedRows – Gets the selected row ids. getSelection returns{ rows: Smart.Grid.Row[], columns: Smart.Grid.Column[], cells: Smart.Grid.Cell[], focused: {id: string, dataField: string} }. So getSelectedRows, if the selection is rows selectection(i.e you have a marked row(s) as selected) will return an array with row ids. getSelection is another method which is basically more general and will return either cells, columns or rows depending on the chosen selection mode of the Grid.

    Best regards,
    Peter Stoev

    Smart UI Team
    https://www.htmlelements.com/

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