Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 23rd, 2012  |  syntax: None  |  size: 1.08 KB  |  hits: 30  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How do I automatically select the first panel in a declaritive dojo wizard?
  2. <div dojoType="dijit.Dialog" id="genWizardDialog" jsId="genWizardDialog" refreshOnShow="true" preventCache="true" title="Title">
  3.  
  4. <div dojoType="dojox.widget.Wizard" style='height: 375px; width:400px' hideDisabled="true" doneButtonLabel="someLabel">
  5.  
  6. <div id="wizard1" dojoType="dojox.widget.WizardPane" canGoBack="false" passFunction="panelOneDriver"></div>
  7.  
  8. <div id="wizard2" dojoType="dojox.widget.WizardPane" passFunction="validateBoxes" style="padding:8px; height:100%;"></div>
  9. ....I have some more panels.
  10.  
  11. </div>
  12. <!-- Here I have setup the cancel method. -->
  13. <script type="dojo/method" event="cancelFunction">
  14.      //dijit.byId("genWizardDialog").onSelected(0);        
  15.      dijit.byId("genWizardDialog").hide();
  16. </script>
  17. </div>
  18.        
  19. <script type="dojo/method" event="cancelFunction">
  20.     dijit.byId("genWizardDialog").hide();
  21.     dijit.byId("genWizard").selectChild("wizard1", false);
  22. </script>
  23.        
  24. <script type="dojo/method" event="onHide">
  25.     dijit.byId("genWizard").selectChild("wizard1", false);
  26. </script>