PDA

View Full Version : Adding complex behavior to grid cell



matt4447
30 Jun 2009, 7:45 AM
Hi all,

I need to create a grid cell with somewhat complex behavior. Basically, I want a on-hover drop down that shows a div. In that div are three links, one of which will add a row to the grid when clicked.

Creating the div and the links are easy, as you just pump out the html for it in the renderer function provided on a column in the columnModel. That said, I'm having a hard time figuring out how to wire up the element inside my renderer to have access to the grid and store so that it can add a row.

Any suggestions?

Thanks,

Matt

atian25
30 Jun 2009, 5:53 PM
http://extjs.com/learn/Ext_FAQ_Grid#How_to_add_a_column_with_tools_for_each_record.3F