One more problem with grid. I found on forum how to change expansion indicator in wingrid, using app styling. I created isl file, which contains arrows in a place of + and -. But when I load isl file to my application, i still can see + and - indicator, and not pictures I put in isl file. Than I tried with default settings wingrid, turning off UseOsThemes, and nothing again. What could be the problem ?
Hi,
divac said:I found on forum how to change expansion indicator in wingrid, using app styling.
Where did you find this? Can you post a link to the post you are referring to?
What exactly are you doing in your isl file?
What version of the controls are you using?
I found on this link, and I used your answer, Mike
http://forums.infragistics.com/forums/p/25904/96649.aspx#96649
So, I created new isl file, opened grid tab, choosed hierarchical view, moved mouse over expansion indicator, pressed number 1 on keyboard, and in UIRole changed images in Normal state and Other state, and I could see arrows in grid preview. But when I load file to my application with this code
string newPath = Application.StartupPath + "/grid.isl"; Infragistics.Win.AppStyling.StyleManager.Load(newPath);
Nothing happens. There is still + and - in grid. I am using 2011 volume 1
I managed to work. I used your post from upper link, and if I put mouse on expansion indicator, when press 1, it takes me to GridExpansionIndicator. And I didn't see that below there is GridGroupByExpansionIndicator, which is the indicator I needed. Now it's working. Thanks again...
So it works in AppStylist on the grid Canvas there but not in your application?
Do any other AppStylist settings apply to the grid? If you load one of the Infragistics style libraries, do they work?
AppStyling could be disabled on a control using the UseAppStyling, StyleLibraryName, or StyleSetName property. So make sure none of these properties is being set on the grid.
When you create a new StyleSet in AppStylist, you are prompted as to whether themes should be turned off. If this is a new isl file you created, did you elect to have it turn off themes? If not, then that would also explain why it does not work. Although setting UseOsThemes on the grid to False would also achieve the same thing.
Those are the only ways I can think of that the isl would not apply.