Home All Groups Group Topic Archive Search About

How do change layout od SideBar in Wizard control? (ASP.NET 2.0)

Author
22 Mar 2006 7:27 AM
placek
Hi all.

On my page I have some Wizard control with four steps. Unfortunately by
default these steps are displayed in sidebar as links. I do not want
give users possibility to skip some steps by clicking on some of these
links. Instead they are supposed to go through each step in fixed
order. Furthermore I would like to highlight current step in the
sidebar.

Solution for my problem would be changing type of sidebar items from
links to textboxes, but I have no idea how to do it. I tried to change
SideBar template, but with no results.

Does anybody can help me?

Thanks in advance,
misiek.

Author
22 Mar 2006 11:19 PM
CaffieneRush@gmail.com
Quote MSDN on Wizard.SideBarTemplate
'The SideBarTemplate object must contain a DataList control with the ID
property set to "SideBarList" to enable the sidebar navigation feature.
Also, the "SideBarList" on the DataList control must contain an
IButtonControl control.'

Which makes me think that the steps *must* be buttons (normal, link or
image). In other words the layout of the sidebar is customisable but
the one required control that displays the navigation step is not
customisable.

Therefore it is almost impossible to do what you want.
ie. Display the sidebar and convert the steps from button controls to
textboxes.
Author
23 Mar 2006 9:34 PM
clintonG
Consider using MultiView and View controls. That's what the Wizard control
has been built from.

<%= Clinton Gallagher
         NET csgallagher AT metromilwaukee.com
         URL http://clintongallagher.metromilwaukee.com/


<CaffieneR***@gmail.com> wrote in message
Show quoteHide quote
news:1143069593.825836.261830@j33g2000cwa.googlegroups.com...
> Quote MSDN on Wizard.SideBarTemplate
> 'The SideBarTemplate object must contain a DataList control with the ID
> property set to "SideBarList" to enable the sidebar navigation feature.
> Also, the "SideBarList" on the DataList control must contain an
> IButtonControl control.'
>
> Which makes me think that the steps *must* be buttons (normal, link or
> image). In other words the layout of the sidebar is customisable but
> the one required control that displays the navigation step is not
> customisable.
>
> Therefore it is almost impossible to do what you want.
> ie. Display the sidebar and convert the steps from button controls to
> textboxes.
>
Author
27 Mar 2006 10:04 PM
Bob Peek
One of the properties of the <asp:Wizard> control is 'Display Sidebar'.  If
the value of this property is set to 'False', the side bar will not be
displayed and your users will be forced to use the next and previous buttons.
This, along with validators on each step will preclude them skipping any
steps.

Show quoteHide quote
"placek" wrote:

> Hi all.
>
> On my page I have some Wizard control with four steps. Unfortunately by
> default these steps are displayed in sidebar as links. I do not want
> give users possibility to skip some steps by clicking on some of these
> links. Instead they are supposed to go through each step in fixed
> order. Furthermore I would like to highlight current step in the
> sidebar.
>
> Solution for my problem would be changing type of sidebar items from
> links to textboxes, but I have no idea how to do it. I tried to change
> SideBar template, but with no results.
>
> Does anybody can help me?
>
> Thanks in advance,
> misiek.
>
>
Author
28 Mar 2006 8:27 AM
misiek
Hi Bob.

I know about that property. However, I would like to show my users all
steps, even if they are not able to skip any.

Some solution could be setting 'Display Sidebar' property to false and
then displaying current 'path' in each step e.g. You are in step 1,
next steps are: step2, step3 and so on.

Best regards,
placek