action formatter fix

Changes in this pull request are required because:

Eariler, it was assumed that the "rowId" passed when an element is clicked is the index of the clicked row in grid data. While it is actually the id of clicked row's column named "id". 
So the way I was finding out the required row was wrong as it would get undefined sometimes while finding the clicked row when an item is returned from the server with the id value higher than the number of rows. 
So now, it is changed and row is found by comparing the argument rowId (or id as named in the method that has changes) with all the rows in the grid and the row with "id" that matches the argument rowId(or id) is selected.