This project is read-only.

<ext:Button> inside template field

Feb 3, 2010 at 4:18 AM
Edited Feb 3, 2010 at 4:19 AM


I`m trying to put an ext:Button inside a template field on an ext:Grid but it didn't work. So I tried to put an ImageButton with CommandName and Argument but it doesn't postback.

I wanna use an ext:Button because I want to use a Icon and it seems that a ext:Grid doesn't have any kind of columns that has an Icon property.

Help me Please




Feb 4, 2010 at 10:19 PM

Is there a way to put an Icon property in a LinkButtonField? That will solve my problem

Mar 22, 2010 at 7:46 PM

I have found the template field uses with Text only.

Mar 23, 2010 at 11:48 AM

You can only put Text or controls in Template field inside ext:Grid.

Mar 23, 2010 at 4:48 PM
Edited Mar 23, 2010 at 4:49 PM

I have <TemplateField> in Grid Column. I'd like to Find Control in it for changing with CType(object, Type) to Control. However, I don't know how to get it. On the other hand, I type 
var query = from v in Grid1.Rows(e.RowIndex).Values select v;

It shows Control as String: <span>....</span>. I'd like to get

a <asp:TextBox> control is in <TemplateField>