Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add button to grid in ExtJs

Tags:

grid

extjs

I'm very new with ExtJS.

Does any one know how to add button to each row of grid in ExtJS?

Please give me some example.

Thanks

like image 861
leejava Avatar asked Sep 29 '09 06:09

leejava


2 Answers

You can check it out here, hope it helps!

http://techmix.net/blog/2010/11/25/add-button-to-extjs-gridpanel-cell-using-renderer/

like image 144
Geniet Avatar answered Sep 19 '22 03:09

Geniet


Actualy Ext.Buttons in a row cell is as far as i can tell impossible with the current setup of Ext. Ofcourse it is actually possible to render the HTML of a button in the div of the cell but i actually think that would be a bad idea.

A better way is to implement Saki's rowactions plugin which makes it really easy to add buttons/actions to each row.

http://rowactions.extjs.eu/

like image 21
ChrisR Avatar answered Sep 22 '22 03:09

ChrisR