70-573 · Question #26
You have a custom Web Part. You need to create a custom user interface for modifying the Web Part properties. What should you do?
The correct answer is B. Create a new tool part for the custom Web Part. MNEMONIC RULE: "Tool part for the Web Part" What is a custom tool part? The Custom tool part is part of the web part infrastructure, that helps us to create a custom user interface forthe web part properties that goes beyond the capabilities of the default property pane. When…
Question
You have a custom Web Part. You need to create a custom user interface for modifying the Web Part properties. What should you do?
Options
- ACreate a new Master Page. Implement the IControlBuilderAccessor interface.
- BCreate a new tool part for the custom Web Part.
- CModify the [ToolBox] attribute of the custom Web Part.
- DCreate a new Web Part. Implement the IControlBuilderAccessor interface.
How the community answered
(22 responses)- A14% (3)
- B77% (17)
- C5% (1)
- D5% (1)
Explanation
MNEMONIC RULE: "Tool part for the Web Part" What is a custom tool part? The Custom tool part is part of the web part infrastructure, that helps us to create a custom user interface forthe web part properties that goes beyond the capabilities of the default property pane. When do we need a custom tool part? Let's say, If we need to create a web part property of type dropdown, we need to create a custom tool part.This is not supported out-of-box in the web part framework. I've the similar requirement of creating a customweb part property of type drop-down. Create Custom Tool Parts for SharePoint Web Parts https://msmvps.com/blogs/sundar_narasiman/archive/2009/09/02/create-custom-tool-parts-for- sharepoint-webparts.aspx
Topics
Community Discussion
No community discussion yet for this question.