Is there a way to get a value of all cell 1 for every row within the grid without selecting a row on button click?
I want to grab all of the ID's without selecting a row so I can pass those Id's to another function
Grid looks like this
To get the bound dataItem to a row when you click a button, you can use the dataItem() method as demonstrated in this click handler:
Alternatively, if the button is outside of the grid, you can use the items() method to get all the rows and loop them to obtain the corresponding dataItem.
Finally, you could also use the dataSource view() dependent on the full use case.
In case you need further assistance, please give some more details about the desired outcome, perhaps accompanied with a description of steps or a screenshot.
Alex HajigeorgievaProgress Telerik
That's only for the row, what I need is to get the ID field for every row so I can pass it to another function in my code.
It is not clear to me if the ids are needed on click of the columns command, however the easiest way to get the ids of items in the current view of rows is via the data source:
var itemIds = grid.dataSource.view().map(item=>item.id));
See this updated Dojo for your reference: