Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
220
UltraWinTree with embedded ProgressBarEditor not showing % label
posted

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

End Sub

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

 

Parents Reply Children
No Data