Jun 29, 2012, 9:56 AM
[CLOSED] Grid row - visible show icons
Hi,
based on this example https://examples2.ext.net/#/GridPane...pare_Commands/
i implemented some funtionalities in my grid.
Issue: On the fly based on some flag i am changing icons in grid rows. But it is not working.
Do the needful.
Thanks in advance.
based on this example https://examples2.ext.net/#/GridPane...pare_Commands/
i implemented some funtionalities in my grid.
Issue: On the fly based on some flag i am changing icons in grid rows. But it is not working.
Ext.Net.ResourceManager ResourceManager1 = new Ext.Net.ResourceManager();
ResourceManager1.RegisterIcon(Ext.Net.Icon.MoneyAdd);
Ext.Net.ImageCommand workflowgo = new Ext.Net.ImageCommand();
workflowgo.CommandName = "prodworkflow";
workflowgo.Icon = Ext.Net.Icon.BulletCross;
columnModel.Columns.Add(Html.X().Column()
.Text(" ")
.Sortable(false)
.Width(50)
.MenuDisabled(true)
.Commands(cmd =>
{
cmd.Add(workflowgo);
}).PrepareCommands(pcmd => pcmd.Fn = "prodprepareCommand").Listeners(gridlisteners =>
{
gridlisteners.Command.Fn = "onCommand";
})
);
var prodprepareCommand = function (grid, commands, record, row, col, value) {
if (record.data.JobStatusId == "5" || record.data.JobStatusId == "6" || record.data.JobStatusId == "7" || record.data.JobStatusId == "8" || record.data.JobStatusId == "9" || record.data.JobStatusId == "10") {
commands.push({
iconCls: "icon-moneyadd",
command: "moneyadd"
});
}
};
newly added icon is invisible in grid. Do the needful.
Thanks in advance.
Last edited by Daniil; Sep 28, 2012 at 2:46 PM.
Reason: [CLOSED]