Jun 14, 2012, 6:46 PM
[CLOSED] ImageCommandColumn
1) I have added an ImageCommandColumn and added the property ButtonAlign="Center" to center the ImageCommands, but it doesn't seem to work.
2) I have added a <PrepareCommand> to disable certain images, but what is the method to disable an image. I can hide it, but how to disable it.
2) I have added a <PrepareCommand> to disable certain images, but what is the method to disable an image. I can hide it, but how to disable it.
<script type="text/javascript">
var prepareCommand = function (grid, command, record, row) {
if (command.command == "ReleaseMemo" && record.data.ReleaseMemo == "") {
command.hidden(true);
}
};
</script>
<ext:ImageCommandColumn runat="server" Header="Documents" Width="80" ButtonAlign="Center" Resizable="false" >
<Commands>
<ext:ImageCommand Icon="PageWhiteAcrobat" CommandName="ReleaseMemo">
<tooltip text="Release Memo" />
</ext:ImageCommand>
</Commands>
<PrepareCommand Fn="prepareCommand">
</ext:ImageCommandColumn>
Last edited by Daniil; Jun 20, 2012 at 11:04 AM.
Reason: [CLOSED]