Intersoft WebDesktop Documentation
Using Templated Command
See Also Send Feedback
Intersoft WebDesktop > Common Tasks > Using Templated Command

Glossary Item Box

Objectives

In previous tutorial [Using ToolCommand Types], it show some predefined WebToolBar command. Furthermore, WebToolBar also gives a flexibility to use a Customized Command which can be anything.
 
This tutorial will show you how to use a Templated command in WebToolBar (we will use WebCombo as customized command for WebToolBar). The steps are as follows:

  1. Drag WebToolBar to WebForm.





  2. Open WebToolBar's Property Window.
  3. In Behavior Property Set, Open ToolCommand Collection Editor at Command Property.





  4. Click "Add" to add New Item and "Remove" to Remove the Selected Item
  5. Change the ToolCommand Types to "Custom", find "Type" Property at the "ToolCommand Collection Editor"'s Property Window
  6. To add theTemplatedCommand Right click the WebToolBar and Expand Edit Template -> WebToolBar Items.





  7. This will show the Edit Template's sub window, where you can put any TemplatedCommand there.





  8. Drag WebCombo to Edit Template's sub window.





  9. When you done, Right click the Edit Template's sub window and Click End Template Editing.





  10. Run the Project and you will get something like this.



See Also

© 2012 Intersoft Solutions Corp. All Rights Reserved.