I need to bind a image based on the column values in the grid. For example, I need to show green image if the values is 0 otherwise red image. I need to bind that when binding the grid only
If you need the filter to display true/false then it might be better to take a slightly different approach. You would still want to handle the InitializeRow event but instead of setting the image path as the value you'll want to simply put in the value of true or false. Then, you'll want to set the FormatFieldMethod for the column and in the method change the text that is displayed to be the image you want based off of the value of the cell.
As far as filtering, we currently do not have the option to place a combo in the filter row, but what you may want to consider is enabling Excel style filtering. I have attached a small sample that demonstrates both the new approach of setting up the cells as well as how it looks when using Excel style filtering. Please let me know if you have any questions or concerns about this implementation.
Hi,
I need to display true and false (dropdown) in the filtering section. If I choose true, I need to show all green images and if I choose false, I need to get all red images
Thanks Jason. It had worked for me
Hello Vamsi,
I believe what you want would be the second option that is described in the following forum thread:
http://ko.infragistics.com/community/forums/t/84639.aspx
You would handle the InitializeRow event, check the value that determines which image should be shown, and then set the image path as needed. Please let me know if this meets your requirements or if I may be of any other help.