is there a way to specify an id on the <tr> elements that are rendered in the grid body, ie the grid rows? i would like to do this at render time and it doesn't appear that the templates used in the grid view take a configuration option for this. i do specify an id on my Store but i don't think this is used by the gridview. i would appreciate any input. btw: the reason i need this is to support testing with selenium.
i'll look into that nige. when i looked at the grid view last night all the template to generate the markup are predefined in the grid view. i came up with a solution using the gridview.getBodyTable().rows combined with the backing store which worked. however after a column sort i'm back to square one. my thought here was to handle the store's 'datachanged' event that is fired after a sort but it looks like at that point in time the grid doesn't contain the sorted rows.
ok the solution to resetting the ids after a sort is to handle the 'refresh' event on the grid's view. worked like a champ and fast too. would be nice to do this at render time of the table so that i don't incurr the cost of iterating the rows. oh well, i'm good for now.