Mar 13, 2012, 10:31 PM
[CLOSED] Icon in Grid Column header
Hi.
I hace a Grid with a CommandColumn having Edit and Delete icons for each Row.
In that's Column header I want to place an Add icon.
Now I have a Js function call in an <a> tag displayed as plain text.
If not, I would like to replace the "New" text with an Add icon.
I tryed with ResourceManager.GetIconURL, RegisterIcon and so, but I can't get it to work.
Thanks
Regards
Fernando
NOTE: I see in Post preview that CODE tag parses wrong my code adding a '<b></b>' in the Js call I've never wrote.
I hace a Grid with a CommandColumn having Edit and Delete icons for each Row.
In that's Column header I want to place an Add icon.
Now I have a Js function call in an <a> tag displayed as plain text.
<ext:CommandColumn Width="70" Align="Center" ButtonAlign="Center" Header="<a href='Javascript:btnAdd_Click();void(0);'>New</a>">
<Commands>
<ext:GridCommand Icon ="NoteEdit" CommandName="Edit"></ext:GridCommand>
<ext:GridCommand Icon ="Delete" CommandName="Delete"></ext:GridCommand>
</Commands>
</ext:CommandColumn>
First of all I want to know if is there any way to render an Ext control in that header (so I don't have to add a plain <a> tag).If not, I would like to replace the "New" text with an Add icon.
I tryed with ResourceManager.GetIconURL, RegisterIcon and so, but I can't get it to work.
Thanks
Regards
Fernando
NOTE: I see in Post preview that CODE tag parses wrong my code adding a '<b></b>' in the Js call I've never wrote.
Last edited by Daniil; Mar 14, 2012 at 1:30 PM.
Reason: [CLOSED]