Friday, May 17, 2013

SharePoint how to place a check box and Dropdownlist in a webpart Tool pane\part

Scenario: How to place custom checkbox and dropdownlist in WebPart toolpane

Solution: Declare a new property of type "Enum" this will place a DropdownList.
For check box declare a property of type Boolean. Also Properties of type String, DateTime and Integer render a textbox.

 Useful webpart attributes when defining custom properties are:-
1. [WebBrowsable(true)]
2.[ Personalizable( PersonalizationScope.Shared)]
3.[WebDescription("")]
4.[WebDisplayname("")]
5.[ Category("")]

1 comment:

  1. 3x Titanium Earrings: Customize your favorite ring designs
    The Titanium Earrings design is titanium pen unique, and titanium flash mica simple. a ring to titanium dioxide skincare an remmington titanium intricate, gold trekz titanium pattern with an elegant, traditional twist.

    ReplyDelete