Hi,
I have a column that has 4 different status values. Based on the value of each cell, I want to display a certain image. However, I don't want the text value to be displayed. I thought of just having two columns to achieve this, but I want to have a value in the image column to allow for proper sorting. Is there anyway that I can retain a cell's value, but display an image while hiding the text?
Thanks,
Jake
Actually, if you want to display the image in the bound cell and retain the value you could set the Cell.Appearance.Image to the appropriate image. Then set the CellAppearance.ForegroundAlpha = Transparent. This will cause the text to be transparent, effectively only showing the image while retaining the value for sorting purposes.
I used the transparent foreground alpha and it works perfectly. Thanks!!!
I was also using this solution successfully until I downloaded and installed the following Infragistics release:
9.1.20091.2039
Is this a known issue?
To clarify, the Transparent Alpha for Foreground no longer has any effect on the control displayed in the column... it continues to display opaque.
I just tested this out with the latest version and it works fine for me. Can you reproduce this in a small sample project?
Try it for a column of type boolean.
Ah, that's a different story. By default, the CheckBox is drawn using Theming. So you would have to set both ThemedElementAlpha and ForegroundAlpha to Transparent.
That would not be any different in any older or newer version of the grid, though.
If you want to use images in a CheckBox column, you'd probably be better off using the GlyphInfo, anyway. Or a CheckEditor in Custom style.
matthouston23 said:Shouldn't programmatic settings override whatever is set in the ISL?
No, that would make the ISL files pretty useless for any existing application because you would have to modify the code to remove any appearance-related code to get the isl to work. Also, some controls have default appearance info that would be impossible to override.
Actually, it's a bit complicated. The isl file will override any general settings that apply to large areas of a control: Application-level settings.
Smaller, more targetting appearances, such as the Appearance on an individual cell will override the isl.
All of this is, of course, the default behavior, but there's a property called ResolutionOrder on the ComponentRole in the isl so you could change the behavior, too.
Turned out my ISL file was causing the problem. My ThemedElementAlpha was set to Opaque in there.
Shouldn't programmatic settings override whatever is set in the ISL?
matthouston23 said: Interesting.. the Transparent Alphas work in the designer but then when the app is run, they are opaque. Ideas?
Interesting.. the Transparent Alphas work in the designer but then when the app is run, they are opaque. Ideas?
Sorry, please disregard. I think there's still a problem, but I'm having trouble nailing it down.. Thanks
Awesome, thanks.