I want to move the sidebar to top in wizard control. How to do that??? I know control adapters can help but it is too tough to write those. Let me know how to do that. Any other solution is also welcome.
or Put A menu control on top of wizard control and hide the side bar. When step change even happens change the active menu and grey all others. It is easy but good workaround. There is no way you can move the side bar to Top unless microsoft writes a control
adapter for Wizard control which replaces table with DIV. Then we can use stylesheet to move the cells to top until then we have to live with this
verinder, there's another solution, which may be more flexible than sticking a menu on top of the Wizard:
use the MultiView control instead of the Wizard control. Put a standard Menu control where ever you want it,
outside the MultiView. then, with the little popup menu on the Menu control (on the design surface), manually add the menu items, one for each wizard step. do
not enter anything for "navigateUrl". then create a MenuItemClick script for the menu control, containing the following code:
protected void navMenu_MenuItemClick(object sender, MenuEventArgs e)
{
int index = Int32.Parse(e.Item.Value);
MultiView1.ActiveViewIndex = index;
}
Then create Next and Back buttons on the page, again outside the MultiView, and create event code similar to the above:
The multiView control has many advantages over the Wizard control, because you have total control over the entire page. the Wizard control is extremely limited, and offers very little advantage in terms of point-and-click programming.
The neat thing about the MultiView is that it apparently sends each view back to the server for safekeeping, when the user flips to a different view, and then restores all data-entry values, like whatever the user typed into the text box, when the user returns
to the first view.
someone, please tell me how to achieve that with a regular page!
uff you get a hundred with that post cristitodoran, it works! and works really fine and easy. I'm not bill gates but stand by me in anything that u ever need.
Can you (or anyone) please explain how/why this works? Closing a non-existant/unopened "tr" and then opening another right before the close of a "SideBarTemplate" does not strike me as something with obvious behavior ...
Thank-you ... I've got a lot to learn, so as basic as your explanation can be, the better :-)
verinder
Member
89 Points
34 Posts
Wizard control adapter with sidebar on top
Nov 15, 2006 03:17 AM|LINK
Hi all,
I want to move the sidebar to top in wizard control. How to do that??? I know control adapters can help but it is too tough to write those. Let me know how to do that. Any other solution is also welcome.
please help!
verinder
commando29
Member
5 Points
1 Post
Re: Wizard control adapter with sidebar on top
Nov 30, 2006 06:14 PM|LINK
Not sure if you found a solution but I found this on google: http://www.codeproject.com/useritems/CustomizingWizardNav.asp
Hope it helps.
Brandon
verinder
Member
89 Points
34 Posts
Re: Wizard control adapter with sidebar on top
Dec 02, 2006 01:55 AM|LINK
pradeeprede
Member
354 Points
110 Posts
Re: Wizard control adapter with sidebar on top
Jan 09, 2007 04:41 PM|LINK
Hi verender, i strucked here with the same problem.
How to set the sidebar on the top of the wizard. plz put the code if possibe.
Hopes u solves my problem
Thanks in advance.
verinder
Member
89 Points
34 Posts
Re: Wizard control adapter with sidebar on top
Jan 13, 2007 01:41 PM|LINK
either use the solution in the link above
http://www.codeproject.com/useritems/CustomizingWizardNav.asp
or Put A menu control on top of wizard control and hide the side bar. When step change even happens change the active menu and grey all others. It is easy but good workaround. There is no way you can move the side bar to Top unless microsoft writes a control adapter for Wizard control which replaces table with DIV. Then we can use stylesheet to move the cells to top until then we have to live with this
pradeeprede
Member
354 Points
110 Posts
Re: Wizard control adapter with sidebar on top
Jan 31, 2007 09:35 AM|LINK
johnywhy
Member
28 Points
24 Posts
Easy Solution
Mar 22, 2008 01:54 AM|LINK
verinder, there's another solution, which may be more flexible than sticking a menu on top of the Wizard:
use the MultiView control instead of the Wizard control. Put a standard Menu control where ever you want it, outside the MultiView. then, with the little popup menu on the Menu control (on the design surface), manually add the menu items, one for each wizard step. do not enter anything for "navigateUrl". then create a MenuItemClick script for the menu control, containing the following code:
protected void navMenu_MenuItemClick(object sender, MenuEventArgs e)
{
int index = Int32.Parse(e.Item.Value);
MultiView1.ActiveViewIndex = index;
}
Then create Next and Back buttons on the page, again outside the MultiView, and create event code similar to the above:
Next: MultiView1.ActiveViewIndex = MultiView1.ActiveViewIndex + 1
Back: MultiView1.ActiveViewIndex = MultiView1.ActiveViewIndex - 1
That's it!
The multiView control has many advantages over the Wizard control, because you have total control over the entire page. the Wizard control is extremely limited, and offers very little advantage in terms of point-and-click programming.
The neat thing about the MultiView is that it apparently sends each view back to the server for safekeeping, when the user flips to a different view, and then restores all data-entry values, like whatever the user typed into the text box, when the user returns to the first view.
someone, please tell me how to achieve that with a regular page!
cristitodora...
Member
2 Points
1 Post
Re: Wizard control adapter with sidebar on top
Sep 22, 2009 02:26 PM|LINK
You add </tr><tr> in the SidebarTemplate. Outside the box...
<SideBarTemplate>
<asp:DataList ID="SideBarList" runat="server" HorizontalAlign="Justify" RepeatDirection="Horizontal">
<ItemTemplate>
<asp:LinkButton ID="SideBarButton" runat="server" BorderWidth="0px"
Font-Names="Verdana" ForeColor="White"></asp:LinkButton>
</ItemTemplate>
<SelectedItemStyle Font-Bold="True" />
</asp:DataList>
</tr>
<tr>
</SideBarTemplate>
flakosh
Member
2 Points
1 Post
Re: Wizard control adapter with sidebar on top
Nov 27, 2009 10:22 PM|LINK
uff you get a hundred with that post cristitodoran, it works! and works really fine and easy. I'm not bill gates but stand by me in anything that u ever need.
flakosh
HowardLynch
Member
8 Points
5 Posts
Re: Wizard control adapter with sidebar on top
Nov 30, 2009 02:29 PM|LINK
Can you (or anyone) please explain how/why this works? Closing a non-existant/unopened "tr" and then opening another right before the close of a "SideBarTemplate" does not strike me as something with obvious behavior ...
Thank-you ... I've got a lot to learn, so as basic as your explanation can be, the better :-)