on 08-25-2008 10:26 AM
Hello,
I'd like to have a ProgressIndicator (Progress Bar) UI-Element on my page that is clickable. The click should execute an action, just like the click Event Handler for Buttons.
But the ProgressIndicator element does not have an onAction method.
Do you have any ideas how to accomplish this?
Thankful for any suggestions,
Lukas.
Hi Lukas Zielinski,
We don't have any events for ProgressIndicator UI Element. Instead of that , you can add one more button near to the ProgressIndicator , and then write code in button events. Since the button near to the progress indicator having relevant label , users can easily get it and click on it.
try using this,
thanks
Suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unfortunately, you can't extend the functionality of UI elements.
As a workaround you could use a LinkToAction UI element. By providing for example 3 images "0.gif", "50.gif", "100.gif" that represent 0%, 50% and 100% you can do something like this
Context:
- percentValue (integer)
- imageSource (string, calculated)
String getImageSource(IContextElement element)
{
int value = element.getPercentValue();
if (value <= 50) return "0.gif";
if (value <= 100) return "50.gif";
return "100.gif";
}
If you bind the "imageSource" property of the LinkToAction to attribute "imageSource" you will get a clickable image that adapts its image to the current percentage value.
Armin
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.