protected override void BuildScriptDescriptor(ScriptComponentDescriptor descriptor) { PropertyPageSheet propertyPageSheet = (PropertyPageSheet)base.ContentPanel.FindControl("policyPropertyPage"); ListView listView = (ListView)propertyPageSheet.Sections["rules"].FindControl("rulesListView"); descriptor.AddComponentProperty("RulesListView", listView.ClientID, true); descriptor.AddComponentProperty("RulesDataSourceRefreshMethod", this.rulesdatasource.RefreshWebServiceMethod.ClientID); descriptor.AddProperty("DLPPolicyParameterName", "DlpPolicy"); base.BuildScriptDescriptor(descriptor); }
private void InitializeControls() { PropertyPageSheet propertyPageSheet = (PropertyPageSheet)base.ContentPanel.FindControl("RetentionPolicyTagProperties"); Section section = (Section)propertyPageSheet.FindControl("GroupInformationSection"); this.divType = (HtmlControl)section.FindControl("divType"); this.ddlType = (DropDownList)section.FindControl("ddlType"); this.tbxTypeHidden = (TextBox)section.FindControl("tbxTypeHidden"); this.rblRetentionAction = (RadioButtonList)section.FindControl("rblRetentionAction"); }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); EcpCollectionEditor ecpCollectionEditor = (EcpCollectionEditor)(base.Master as IMasterPage).ContentPlaceHolder.FindControl("Wizard1").FindControl("generalInfoSection").FindControl("ceManagedBy"); ecpCollectionEditor.IsUsingOwaPeoplePicker = true; ecpCollectionEditor.PickerCallerType = PickerCallerType.GroupsOwners; EcpCollectionEditor ecpCollectionEditor2 = (EcpCollectionEditor)(base.Master as IMasterPage).ContentPlaceHolder.FindControl("Wizard1").FindControl("generalInfoSection").FindControl("ceMembers"); ecpCollectionEditor2.IsUsingOwaPeoplePicker = true; ecpCollectionEditor2.PickerCallerType = PickerCallerType.GroupsMembers; PropertyPageSheet propertyPageSheet = (PropertyPageSheet)(base.Master as IMasterPage).ContentPlaceHolder.FindControl("Wizard1"); propertyPageSheet.Attributes["vm-IsInOwaOption"] = "true"; }