Hi,
In a grid i have 5 Image command columns each having 2 image command each. Based on certain condition i need to hide/show one of those image commands in each command column from code behind.
Can somebody please guide me how achieve the same?
Printable View
Hi,
In a grid i have 5 Image command columns each having 2 image command each. Based on certain condition i need to hide/show one of those image commands in each command column from code behind.
Can somebody please guide me how achieve the same?
Hi,
From code-behind it is not possible. You need use PrepareCommand to hide command
See
https://examples1.ext.net/#/GridPanel/Commands/Image_Command/
You can trigger PrepareCommand in codebehind for particular row using the following script (use AddScript to register script)
Code:grid.view.refreshRow(grid.store.getAt(rowIndex));
Is this possible in Ext.Net 2.x?