View Full Version : Textbox Field in a Grid with CellEditing

2 Aug 2012, 1:42 PM
i'm working on a grid and i need to render a textbox field and make it editable. I achive to edit cell with editcell but i dont know how to render this textbox filed as default for the cell. I try with a renderer function returning

return "<input type'textbox' value='" + record.get("Id") + "'></input>";

and with this i have two problems first when i click the cell editor textbox appears and its look pretty bad, and it is not correct.

How can i make a textbox cell editable?

2 Aug 2012, 2:51 PM
Check following example: http://dev.sencha.com/deploy/ext-4.1.0-gpl/examples/grid/cell-editing.html

(http://dev.sencha.com/deploy/ext-4.1.0-gpl/examples/grid/cell-editing.html)I think your textbox (.Net or st) is textfield in ExtJS.

2 Aug 2012, 3:56 PM
Yes i based my grid on this example, but the field is not a textbox is just it changes when you click the cell and i'm looking for make the field a textbox editable, similar but not the same behavior.

- Sadd

3 Aug 2012, 2:19 PM
This feature is built-in using the cell-editing as mentioned .. not sure why you are trying to inject plain html as a renderer into the grid cell. What does your option provide that is different?