Dynamically insert wizard pages at runtime


Author
Message
Randy Jean
Randy Jean
StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)
Group: StrataFrame Users
Posts: 105, Visits: 641
I'm trying to create a prototype for an application we're designing. I'm thinking of using the Wizardcontrol heavily. However, there will be a lot of need for conditionally/dynamically inserting/removing pages based on previous wizard steps. Can you give me a quick tutorial on this? I looked at the SampleWizard form in the UIControlsSample download and I saw this capability mentioned but could not find an example. Thanks in advance.



- Randy
Replies
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Thanks for the heads up... I'll check it out.
Randy Jean
Randy Jean
StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)StrataFrame User (233 reputation)
Group: StrataFrame Users
Posts: 105, Visits: 641
Another wizard question:

Is there a way to force the Next button to be enabled even though it "thinks" it's on the last page. I tried



Me.WizardControl1.SetNavigationButtonStatus(WizardNavigationButtons.Next,WizardNavigationButtonStatus.Enabled)



in the PageActivate of the last page but it continued to be disabled.



Thanks,

Randy
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
You can insert a blank page after your "real" last page.  Just handle the NextClicked event and prevent it from going to that page.  The control inheriantly disallows end-users from "hurting" themselves by automatically taking account of the last page.  Another option is to just change the text of the finish button.  You can also set the "ShowFinishButtonAsDistinctButton" property to false.  This way the Next and finish buttons share the same space and will never be disabled.
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
We've been able to reproduce the problem and are working on a fix, Jean.  We'll make sure the fix makes it into the next version.
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