public void Reload() { foreach (DataListItem item in uxList.Items) { if (item.FindControl("uxProductItem") != null) { Components_PromotionProductItem productItem = ( Components_PromotionProductItem )item.FindControl("uxProductItem"); productItem.Reload(); } } }
private void UpdateProductItem(object sender) { Components_PromotionProductItem selectedItem = ( Components_PromotionProductItem )sender; uxSelectedProductHidden.Value = selectedItem.ProductID + ":" + selectedItem.ProductOptionIDs; foreach (DataListItem item in uxList.Items) { if (item.FindControl("uxProductItem") != null) { Components_PromotionProductItem productItem = ( Components_PromotionProductItem )item.FindControl("uxProductItem"); if (!selectedItem.ProductID.Equals(productItem.ProductID)) { productItem.CheckedRadio = false; } } } }