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

    what difference getSelectedRows with getSelection?

    no api example for above function?

    Joko Pitoyo

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



    From the Grid API docs( 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

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