Sometimes, you may not be content with the default toolbar provided OOTB, which only contains a link title. Actually, you add customize toolbar for your own web part. Reza gave two possible ways to implement it.
- Load the default Toolbar controls from /_controltemplate, and add it to your web part. For this control, there is a property named Template_Buttons, you create your own ITemplate to replace it. Please referhere for demo code and detail.
- Use the RepeatedControl which is used by SharePoint to achive a consistent look and feel to create similar HTML for various toolbars across all the OOTB web parts and pages in SharePoint. Please referhere for detail.
No comments:
Post a Comment