Dec 17, 2018, 6:44 AM
[CLOSED] Image Command Icon Visibility Issue
HI, I have just upgraded from 1.7 to v4 and going through the task of updating everything.
I seem to be having an issue with one of my data grids show and hiding icons based on other column results which was working in 1.7.
This is the basics of what I have.
Markup
I seem to be having an issue with one of my data grids show and hiding icons based on other column results which was working in 1.7.
This is the basics of what I have.
Markup
<ext:ImageCommandColumn runat="server" Width="80" Text="Complete">
<Commands>
<ext:ImageCommand Icon="Tick" CommandName="Complete" />
</Commands>
<PrepareCommand Fn="prepareCommand" />
</ext:ImageCommandColumn>
<ext:Column
runat="server"
Header="StageID"
Width="80"
DataIndex="StageID"
Hidden="true"
/>
C#var prepareCommand = function (grid, command, record, row) {
if (record.get("StageID") == 10) {
command.hidden = false;
command.hideMode = 'visibility';
}
else {
command.hidden = True;
command.hideMode = 'visibility';
}
};
Any help much appreciated.
Last edited by fabricio.murta; Dec 18, 2018 at 10:54 AM.