Hi,
I use UltraGrid in virtual mode. The ForeColor and BackColor of each UltraGridColumn is set by using its property CellAppearance. After I started using AppStyling, the ForeColor and BackColor of any column with a ValueList are ignored. I also tried to play with style roles of ValueList and ValueListItem in an isl file and I could not get ForeColor and BackColor of a ValueList column to work. What do I miss here?
Your help is greatly appreciated!
Best Regards,Shaolin
Hi Shaolin,
Thank you for posting in our forums!
Let me clarify something. Your application had appearances with specific colors, but when an AppStylist is loaded, these appearances are gone and can’t be modified. Please correct me if I misunderstand something.
It is completely normal that the appearance objects are not honored at runtime when a style library is loaded. The idea behind the style library is to apply all appearances in design time via the AppStylist application. In case any particular appearance is modified by the loaded style library, you can’t change it at runtime.
My advice would bet to either use a style library and resolve all appearances by the file itself or rely on customizing and set different appearance objects via Visual Studio designer or at runtime. It would be a real mess if you have applied appearances and at given moment decide to load a style library, because at the end you will end up not knowing why a specific appearance is set or not.
Please let me know if you have any additional questions regarding this matter.
Hi Ivaylo,
This issue is only related to a column with a ValueList object containing the list of values used by a column. I only use ForeColor and BackColor for now. I do not want any ForeColor and BackColor defined for ValueList or ValueListItem in an AppStylist. I have played with an AppStylist with no success. Could you please let me know how I can achieve this?
I had to delete <style role="ValueList"> and <style role="ValueListItem"> from isl files.
Please let me know if you need further assistance regarding this topic as I assume that the answer to your question was provided as a part of the best answer in the following forum thread at http://ko.infragistics.com/community/forums/t/107366.aspx