2

I have created Custom property for string and drop down list .

Currently I'm trying to create radio button custom web part property.

Custom property name will be City

2 radio button will be

  • Las vegas
  • New york

1 Answer 1

4

You cannot create Radio Button type property directly as Custom Web part property.

The supported types are:

  • Check box
  • Text box
  • Dropdown

Read more Creating a Web Part with Custom Properties

But here is a trick to do that. Because every WebPart Property have radio button in it.

So just overwrite the GetToolParts() and prepare your custom.

Detail steps are given at Create rich web part properties controls using custom tool parts with a complete example code

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.