Conditional Image Display in GridButtonColumn and GridTemplateColumn
There are cases in which you would like to display/not display image inside GridButtonColumn/GridTemplateColumn in relation with value in other column.
The example below demonstrates how to fulfill this task for GridButtonColumn and GridCheckBoxColumn (note that similar operations can be performed for GridTemplateColumn and other column types).You can retrieve reference to the checkbox the inside the grid item cell which correspond to the GridCheckBoxColumn. This can be done in the ItemDataBound handler of the grid. After you get the checkbox control you can verify whether the checkbox is checked (to assign ImageUrl for the ImageButton in the GridButtonColumn) or not checked (to clear the controls inside the respective GridButtonColumn cell).
Here is an example (CheckBoxColumn and ButtonColumn are the UniqueNames for our columns):
<telerik:RadGrid RenderMode="Lightweight" ID="RadGrid1" runat="server">
<MasterTableView AutoGenerateColumns="False">
<Columns>
<telerik:GridButtonColumn CommandName="MyCommand" ButtonType="ImageButton" UniqueName="ButtonColumn">
</telerik:GridButtonColumn>
<telerik:GridBoundColumn HeaderText="ContactName" DataField="ContactName" UniqueName="ContactName">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="ContactTitle" DataField="ContactTitle" UniqueName="ContactTitle">
</telerik:GridBoundColumn>
<telerik:GridCheckBoxColumn UniqueName="CheckBoxColumn" DataField="Bool">
</telerik:GridCheckBoxColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>