I have an ultraprogressbar that I segment with "percentsetting" to different colours and turn useAppStyling to False and everything appears perfectly in colour.
Now I embed that same ultraprogressBar into a cell in the grid (MyGrid.Rows(I).Cell(column).EditorComponent = MyProgressBar) and the segment colours do not appear. It is overwritten by the grid appstyle setting. If I turn off our AppStylist then the ProgressBar in the grid appears in colour.
Is there a way without removing the appstyling in the grid to get my progressbar showing in colour? Thanks.
Hi Bob,
Based on your description, it looks like the application style you are using is overriding the FillApperance of the ProgressBar. By default AppStylist settings override any setting in the application. The only way around this is to modify the Style library you are using.
Alternatively, you can also change the Resolution Order so that the property settings in your application will take precedence over the Style library settings. But this approach is not recommended for every scenario as this setting will apply to all the controls in your application.
Please let me know if I may be of further assistance.
Sincerely,Sahaja KokkalagaddaAssociate Software Developer
I've tried setting the resolution order "ControlThenApplication" and I still get the same result.
I'm a bit of a newbie when it comes to the AppStyling in Infragistics. Could you point me in the right direction as to what property I would need to modify to allow the progressbar embedded editor to display correctly in the Wingrdi. Thanks. Regards, Maurice.
Please send me the isl file you are using for your UltraGrid and I will review it to see which UIElement style is overriding the ProgressBar color in UltraGrid.
I've attached my isl file. It originates from one of the Infragistics Samples that I have been modifying to suit our needs.
Thank You for your assistance. Regards, Bob.
I have looked at the isl file you have sent me. However, I could not open it using Appstylist as there were some syntax errors in the isl file. I assume you were trying to manually change the isl file settings for modifying the ResolutionOrder of UltraGrid.
I’m able to change ResolutionOrder of UltraGrid and was able to display the Grid ProgressBar in color. You can refer to the attached sample for implementing this. To achieve this, in the New StyleSet.isl I modified the Component Role for UltraGrid so that its ResolutionOrder is ControlThenApplication.
Yes, unfortunately the file I sent you was corrupted with some manual last minute editing.
I verified my resolution order. I verified the properties with your "New StyleSet.isl" file and I still cannot get it to work with just those settings. I noticed that in your sample you created the ProgressBar in the designer while I instantiate a new control in code. Could this make a difference? I will try this out. In the meantime I've re-attached my error free isl file.
Thank You for your assistance in this matter.
Your sample has the same issue... NO COLOUR when used with your or my isl file in the grid. Below is what it looks like with my isl file. The colours do not appear in the grid.
My desired effect is to have the percent lines in colour. Not in the light blue that seems to be overriding everything. Thank You.
That totally worked! I don't think I would have ever figured that one out. Thanks for the assist.
Regards, Bob.
In your isl file you have a default resource setup for the ProgressBarUIElement. Please remove this default resource for ProgressBarUIElement to add custom color to it through your application. When you open your isl file using AppStylist, you can find this resource in the Resources tab of ProgressBarUIElement.
The picture I sent in my previous post is your program sample with my isl file which produces the issue. Your code colour settings do not take effect with my isl file (previously provide but I've re-attached it again). I cannot find the isl property which is causing my issue. I do have both the grid and ProgressBar resolution order to "ControlTenApplication" in my isl file. Thanks, Bob.
I’m able to set background color for the ProgressBar in Grid by changing the ResolutionOrder. Below is my Form1 with this color setting. I also added the ProgressBar through code to see if that makes any difference but it is setting the background color as per the ResolutionOrder setting.
One more thing that I forgot to mention is, I also changed the ResolutionOrder of ProgressBar control. This should fix it if not then please send me a sample with this issue reproduced in it along with the steps to reproduce it. I will further look into this issue as soon as I receive the sample.