Hi Paul, The CreatechildControls method creates the controls on runtime when the web part is rendered, not when it is provisioned. You're resetting the Chrome type every time you display the web part. You can define custom settings when you are provisioning the web part as part of a web template, or in a feature activated event receiver, I'm not sure how would you go about defining the default chrome for a particular web part though.... Anyone? Cheers, JC
From: [email protected] [mailto:[email protected]] On Behalf Of Paul Noone Sent: Monday, 19 September 2011 9:37 AM To: ozMOSS ([email protected]) Subject: MOSS - Web Part chrome is locked Hi all, I'm sure I've done something silly but I'm unable to change the chrome settings for a custom web part via the UI. They always revert to what I've defined in CreateChildControls. protected override void CreateChildControls() { if (!error) { try { base.CreateChildControls(); this.ChromeType = PartChromeType.TitleOnly; Table table = new Table(); // etc... row.Controls.Add(cell); table.Controls.Add(row); this.Controls.Add(table); Is there a simple way to prevent this? Kind regards, Paul
_______________________________________________ ozmoss mailing list [email protected] http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss
