Wizard and ProgressIndicator


Author
Message
Randy Jean
Randy Jean
StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)
Group: StrataFrame Users
Posts: 105, Visits: 641
I'm re-working a wizard form I have to use SetupPage style with a progressindicator. However, at this point, I need to know how/if I can programatically control the visibility and progress indicators. I'm not even sure if I want the wizard to do anything automatically at this point.... (maybe just on some interim header items in the collection...) I would like to be able to update the status of any item based on underlying data vs. just wizard navigation. Any help or example would be appreciated.
Randy Jean
Randy Jean
StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)
Group: StrataFrame Users
Posts: 105, Visits: 641
Think I got this figured out. I didn't realize there was a form level set of properties to set so that took care of my progressindicator not carrying over to each page. I also figured out if I stuff a bogus key string into the ProgressIndicatorItemKey that will suppress the implicit status update behavior and allow me to write my own status update logic like so:





Me.AtlasTestProgress.SetItemStatus("RunStatus", MicroFour.StrataFrame.UI.ProgressIndicatorItemStatus.Active)



Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Yeah, the ProgressIndicator can be attached at the Wizard level and it will automatically move itself from page to page...if you allow it to.  Rather than using a "bogus" key, just leave the ProgressIndicatorKey empty or do not allow the indicator to show up.  A "bogus" key would work as well, but you should get the same results with an empty key.

Also, you can always overwrite the settings of the ProgressIndicator on the pages PageActivated event (or whereever meets your need) as well using the SetItemStatus method as you did in your example. 

Randy Jean
Randy Jean
StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)StrataFrame User (167 reputation)
Group: StrataFrame Users
Posts: 105, Visits: 641
Thanks for the info. Seems like when I tried leaving the key blank then the progress indicator implicitly tried to synch with what page I was on. I still want it to show on each page, but I want to control the progress and status with what's happening behind the scenes.



Anyway, very nice control. Would have taken me a lot longer to even come close to achieving the same look and feel.
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Thanks.  We have found this to be a very handy control!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search