Hi.
I am using 10.2 Winforms and have a databound UltraWinTree with a ProgressBarEditor added succesfully using tv_ColumnSetGenerated. The ProgressBarEditor is populated with a percentage in the tv_InitializeDataNode and the progressbar graphics show perfectly. What I can't get to work is getting a label / text to show with the percentage in text.
My code so far:
Private Sub tv_ColumnSetGenerated ....
' Add additional columns Dim Status As Infragistics.Win.UltraWinTree.UltraTreeNodeColumn = e.ColumnSet.Columns.Add("Status")
' Create the ProgressBarEditor Dim pbe as new Ingragistics.Win.UltraWinProgressBar.ProgressBarEditor Status.Editor = pbe
End Sub
Private Sub tv_InitializeDataNode ...
if e.Reinitialize then Exit Sub
Dim StatusCell as Infgragistics.Win.UltraWinTree.UltraTreeNodeCell = e.Node.Cells(e.Node.DataColumSetResolved.Columns("Status")) if StatusCell is nothing then Exit Sub Dim pbe as Infragistics.Win.UltraWinProgressBar.ProgressBarEditor If StatusCell.EditorResolved IsNot Nothing then pbe = StatusCell.EditorResolved else pbe = new Infragistics.Win.UltraWinProgressBar.ProgressBarEditor end if pbe.Minimum = 0 pbe.Maximum = 100 StatusCell.Value = 50 ' This is normally the calculated value, but 50% shown as an example
Any ideas on how I can get the progress bar to show the graphic, and some text behind it would be appreciated. I've tried setting the ProgressBarEditor.Label, but I seem to get the same label value showing for every progressbar on the UltraWinTree.
A partial screenshot of what I am trying to achieve (i.e no text visible) is shown below:
Thanks!
Gary Burgess
Hi Gary,
Here’s are some instructions for initializing the ProgressBar, including setting the format and the Text property. I think this should do the trick.
http://help.infragistics.com/NetAdvantage/WinForms/2010.2/CLR2.0/?page=Infragistics2.Win.v10.2~Infragistics.Win.UltraWinProgressBar.UltraProgressBar.html
Marianne
Hi Marianne,
Thanks for your reply. The instructions you suggested I read relate to the WinProgressBar ... my post is about the ProgressBarEditor (embedded editor), which doesn't have a "Text" property. If you need more clarification about my question, please ask.
Any other ideas would be appreciated.
Regards
Gary