/// <summary> /// Processes the item update command. /// </summary> /// <param name="items">The items.</param> void ProcessItemUpdateCommand(ListViewItem item) { List <TemplateControl> ctrls = ManagementHelper.CollectControls <TemplateControl>(item); foreach (Control ctrl in ctrls) { IBatchUpdateControl buctrl = ctrl as IBatchUpdateControl; if (buctrl != null) { buctrl.Update(); } } }
void CurrentListView_ItemCreated(object sender, ListViewItemEventArgs e) { if (e.Item.ItemType == ListViewItemType.DataItem) { List <TemplateControl> ctrls = ManagementHelper.CollectControls <TemplateControl>(e.Item); foreach (Control ctrl in ctrls) { IBatchUpdateControl buctrl = ctrl as IBatchUpdateControl; if (buctrl != null) { buctrl.FieldName = ddlFieldList.SelectedValue.Split('$')[0]; buctrl.IsMetaField = bool.Parse(ddlFieldList.SelectedValue.Split('$')[1]); buctrl.LanguageCode = ListLanguages.SelectedValue; buctrl.CatalogNodeId = CatalogNodeId; } } } }