ADAdministrator Syncfusion Team May 19, 2004 05:50 AM
Yes, you could do so by following the directions given below :
1. Set the ProgressBarAdv''s TextStyle to Custom
2. Handle the ProgressBarAdv''s ValueChanged event and set e.Text = "your desired text" and e.Handled = true.
Please refer to the sample_attached that demonstrates this. Thanks for considering Syncfusion products.
RIRichJune 6, 2004 06:01 PM
That works well, now how can I align the text, currently it appears that the start of the text starts from the center, so it runs off the right hand side.
ADAdministrator Syncfusion Team June 6, 2004 09:42 PM
I am afraid, presently the ProgressBarAdv does not have the ability to align the Text on it. However, we have could consider this as a feature request for a future release of Essential Suite. We appreciate your feedback, and thanks for choosing Syncfusion products.
GPGuru PatwalJune 9, 2004 11:31 AM
A TextAlignment property has been added to the ProgressbarAdv which would now allow you to align the Text. This feature is still internal, and would be available in the next release of Essential Suite (post v126.96.36.199 releases). Thanks for your interest in Syncfusion products.
ADAdministrator Syncfusion Team December 16, 2004 01:42 PM
I am trying to do the same thing, would love to see the sample code but it seems to not be accessible.
ADAdministrator Syncfusion Team December 24, 2004 07:11 AM
Can you repost the sample code? It looks like it is not there anymore. Thank you.
ADAdministrator Syncfusion Team December 26, 2004 05:50 AM
I have reattached the test sample here. Please refer to it and let me know if you need further assistance. We appreciate your interest in Syncfusion products.
JIJim October 12, 2005 12:38 PM
I''m curious why it''s necessary to handle an event to set the text? Why can''t I just set the text when I set the value. Maybe an overloaded value of SetValue that takes a string as a second parameter. Obviously there are many ways of doing this. You might also want to look at how Infragistics handles this, they define some formatting variables, so you can say the text will be "Loading " + [constant that will be replaced with formatted text showing percentage or whatever].