28 Mar 2007 3:25 PM #1
setting ids on grid rows...
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.
29 Mar 2007 1:02 AM #2
- Join Date
- Mar 2007
- Notts/Redwood City
- Vote Rating
If you specify a column renderer in one of your ColumnModel colmn defs, I think the 3rd param is the <TR>.Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
29 Mar 2007 4:34 AM #3
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.
29 Mar 2007 7:14 AM #4
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.
By arnair in forum Ext 1.x: Help & DiscussionReplies: 12Last Post: 16 Mar 2010, 9:52 AM
By KaiDream in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 23 Feb 2007, 11:38 PM
By kjordan in forum Ext 1.x: Help & DiscussionReplies: 2Last Post: 21 Jan 2007, 11:23 AM
By ericwaldheim in forum Ext 1.x: Help & DiscussionReplies: 3Last Post: 9 Oct 2006, 10:58 AM
By rodiniz in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 6 Oct 2006, 7:01 AM