Jun 16, 2010, 1:40 PM
ImageCommand Icon not showing up
Hello,
I've added a ImageCommand column to a GridPanel, but its icons are not showing up.
Here is the code (just like in the example page):
<ext:CommandColumn Width="100" Header="Toolbar Cmds">
<Commands>
<ext:GridCommand Icon="Delete" CommandName="Delete">
<ToolTip Text="Delete" />
</ext:GridCommand>
<ext:CommandSeparator />
<ext:GridCommand Icon="NoteEdit" CommandName="Edit">
<ToolTip Text="Edit" />
</ext:GridCommand>
</Commands>
</ext:CommandColumn>
If I download the example page ("Prepare Commands") it runs fine in my machine. But in my page, the column it's not working. Actually nothing is being rendered in the html of the grid cell.
One possibly reason is that I'm adding store fields dynamically in the code behind. Not sure if that can be the reason, and if it is, how can I work it? Data is being retrieved from a SQL database (stored procedure).
I've already tried ResourceManager.RegisterIcon in the Page_Load, but still no success.
Any help would be appreciated, thanks!
I've added a ImageCommand column to a GridPanel, but its icons are not showing up.
Here is the code (just like in the example page):
<ext:CommandColumn Width="100" Header="Toolbar Cmds">
<Commands>
<ext:GridCommand Icon="Delete" CommandName="Delete">
<ToolTip Text="Delete" />
</ext:GridCommand>
<ext:CommandSeparator />
<ext:GridCommand Icon="NoteEdit" CommandName="Edit">
<ToolTip Text="Edit" />
</ext:GridCommand>
</Commands>
</ext:CommandColumn>
If I download the example page ("Prepare Commands") it runs fine in my machine. But in my page, the column it's not working. Actually nothing is being rendered in the html of the grid cell.
One possibly reason is that I'm adding store fields dynamically in the code behind. Not sure if that can be the reason, and if it is, how can I work it? Data is being retrieved from a SQL database (stored procedure).
I've already tried ResourceManager.RegisterIcon in the Page_Load, but still no success.
Any help would be appreciated, thanks!