|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How do change layout od SideBar in Wizard control? (ASP.NET 2.0)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. 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. 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. > 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. > > 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
How to add client script to a pushbutton in datagrid
FileUpload - keep the filename Master/Details cloning a record? GridView disapears after entering edit mode. ObjectDataSource method as another ObjectDataSource put control in a repeater cell from code behind Refreshing TreeView Intellisense question Alignment of webcontrols... Master Page - File References |
|||||||||||||||||||||||