自定义AppearanceEditorPart以仅允许标题可更新
我正在 VS2010 中使用 Webpart。我想看看是否有更简单的方法来扩展 AppearanceEditorPart,以便在编辑模式下选择 Web 部件时只有标题可见
谢谢 CSS
I am working with Webpart in VS2010. I am trying to see if there is simpler way to extend AppearanceEditorPart so that only Title is visible when the webpart is selected in edit mode
Thanks
CSS
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想有更简单的方法来实现上述要求。我想做的就是创建一个仅显示标题框的编辑器部分,以便人们只能更新正在编辑的 Web 部件的标题。我发现最好的选择是使用 PropertyGridEditorPart。此 Web 部件非常适合您希望允许用户为 Web 部件设置自定义属性的情况。以下是来自微软网站的文档:
http: //msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.propertygrideditorpart.aspx
在我的例子中,我创建了以下属性和 Webpart 框架照顾好休息!!!!
谢谢
I guess there is easier way to implement the above requirement. All I was trying to do was create an editorpart that would show only the title box so that people can only update the title of the webpart being edited. I figured out that the best alternative is, is to use PropertyGridEditorPart. This webpart is ideal in situation where you want to allow user to set customized property for a webpart. Here is documentation from microsoft website:
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.propertygrideditorpart.aspx
In my case i created following property and webpart framework took care of rest!!!!
Thanks