open localhost/webapp/index.php?r=ordergoods/admin#, click any row of the gridview, popup window appears as expected
go to second page of grid through pager generated automatically, the the grid loads values normally, however, click any row of the grid, nothing happened
with firebug, I can see elements can be found with “$(’#order-goods-grid table tbody tr’)”, but event seems not be triggered
After the pagination/filtering/sorting… the grid is replaced/updated… so that the original grid is not there any more… as you use direct binding that works only with the original grid… to make your code work with future elements you need to delegate your event handlers…
You need to study a bit jQuery to see how delegate events work… check the new jQuery on() method - http://api.jquery.com/on/