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

P

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.
 
C

CaffieneRush

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.
 
B

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.
 
M

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,608
Members
45,241
Latest member
Lisa1997

Latest Threads

Top