<ext:Button> inside template field

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

Hi,

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 asp.net 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

 

Thanks

 

Feb 4, 2010 at 9:19 PM

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

Editor
Mar 22, 2010 at 6:46 PM

I have found the template field uses with Text only.

Coordinator
Mar 23, 2010 at 10:48 AM

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

Editor
Mar 23, 2010 at 3:48 PM
Edited Mar 23, 2010 at 3: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;
Alert.Show(query.ElementAt(0).ToString());

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

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