Hi,
I have upgraded to v7.3 infragistics and code which previously worked (in 5.1) is no longer.
Basically I have a grid with 3 columns, the 3rd column is used to display data in both value and progress bar, I achieved this previously by associating each cell.EditorControl with a new instance of UltraProgressBar. However when the code runs, the %value's appear but the progress bar itself fails to paint on each cell.
So at run time we can add an item to the grid and its value and %value in the bar would appear.
cell.EditorControl = CreateBar();
then later when I want to update the value foreach(row/cell in the column of columns)
at this point the percent value updates but the bar fails to be displayed.
Not sure I this hotfix will fix my issue, but here goes. In my application's form c'tor, I do the following, right after InitializeComponent() completes:
// Add layout handler. Iterate through all of my tabs... // foreach (UltraTab tab in tabCtrl.Tabs) { UltraTabPageControl page = tab.TabPage; // For each control on this tab page... // foreach (Control ctrl in page.Controls) { // Grids only... // if (ctrl is Grid) { Grid gridControl = (Grid)ctrl; // Set common event handlers. // gridControl.InitializeLayout += new InitializeLayoutEventHandler(Grid_InitializeLayout); gridControl.AfterRowExpanded += new RowEventHandler(Grid_AfterRowExpanded); gridControl.AfterRowCollapsed += new RowEventHandler(Grid_AfterRowCollapsed); gridControl.MouseDown += new MouseEventHandler(Grid_MouseDown); // Set display progress columns. // foreach (UltraGridBand band in gridControl.DisplayLayout.Bands) { foreach (UltraGridColumn column in band.Columns) { if ((column.EditorControl != null) && (column.EditorControl.GetType() == typeof(UltraProgressBar))) { column.CellAppearance.ThemedElementAlpha = Alpha.Transparent; } } } } if (ctrl is UltraProgressBar) { UltraProgressBar progress = (UltraProgressBar)ctrl; progress.Style = Infragistics.Win.UltraWinProgressBar.ProgressBarStyle.Continuous; progress.UseAppStyling = false; progress.UseOsThemes = DefaultableBoolean.False; // Set the appearance of the status bar control // to use a gradient. // progress.Appearance.BackColor = Color.Gray; progress.Appearance.BackColor2 = Color.White; progress.Appearance.BackGradientStyle = GradientStyle.GlassTop20Bright; progress.Appearance.ForeColor = Color.LightSeaGreen; // Set the appearance for the 'fill' area of the // status bar control to use a different gradient. // progress.FillAppearance.BackColor = Color.Blue; progress.FillAppearance.BackColor2 = Color.White; progress.FillAppearance.BackGradientStyle = GradientStyle.GlassTop20Bright; progress.FillAppearance.ForeColor = Color.LightSeaGreen; // Set the border style for the control // progress.BorderStyle = UIElementBorderStyle.Etched; progress.Minimum = 0; progress.Maximum = 100; } } }
BUT: My progress bars are still showing up a nice bright green color. Huh? How do I change this? I want the progress bar color to be the colors I set for FillAppearance...
I wanted to update everyone on this issue. I think I found a new issue with this. While the original topic question did get resolved, I noticed that you scroll around the tree, the progressbar's get painted with the wrong value, and keep changing while you scroll. For example, take the VS solution attached to this thread, and change the value from 11 to 101. Start scrolling up and down. You'll see the values in the progressbar change randomly. I hope it gets resolved soon :)
Thanks very much for the update Malcolm!
Ken
I received email confirmation that this has now been fixed in a private hotfix, I have tested both 7.3 and 8.1 and the bar behaviour is now correct, I am able to see the bars in the Windows classic theme's.
I've pasted the notes here:
The following WinTree issue that you reported has been addressed in a hotfix release:BR31296 - ProgressBar is not showing in the cell of UltraTree Control when Window theme is set to WinDows Classic.
Incident(s):WTR2571
Hotfix Version(s):7.1.20071.1068 CLR 1.x, 7.1.20071.1068 CLR 2.0, 7.2.20072.1076 CLR 2.0, 7.3.20073.1050 CLR 2.0, 8.1.20081.2015 CLR 2.0
Cheers
Malcolm.
Hi, I recieved email confirmation that its been fixed and will be in the next hotfix release (the one thats been delayed). Hopefully this will fix the other issue I'm having where the progress fill area is not showing in the Cell - I may have to create a new incident for that.
I'll update here when its fixed - there's a patch for both 2007 Vol3 and 2008 release's.