protected void uxList_OnItemDataBound(object sender, DataListItemEventArgs e) { if (e.Item.ItemIndex == DataAccessContextDeluxe.PromotionProductRepository.GetProductList(PromotionSubGroupID, "SortOrder").Count - 1) { Mobile_Components_PromotionProductItem productItem = (Mobile_Components_PromotionProductItem)e.Item.FindControl("uxProductItem"); productItem.SetNoBorderBottomCss(); } }
public void Reload() { foreach (DataListItem item in uxList.Items) { if (item.FindControl("uxProductItem") != null) { Mobile_Components_PromotionProductItem productItem = (Mobile_Components_PromotionProductItem)item.FindControl("uxProductItem"); productItem.Reload(); } } }
private void UpdateProductItem(object sender) { Mobile_Components_PromotionProductItem selectedItem = (Mobile_Components_PromotionProductItem)sender; uxSelectedProductHidden.Value = selectedItem.ProductID + ":" + selectedItem.GetProductOption; foreach (DataListItem item in uxList.Items) { if (item.FindControl("uxProductItem") != null) { Mobile_Components_PromotionProductItem productItem = (Mobile_Components_PromotionProductItem)item.FindControl("uxProductItem"); if (!selectedItem.ProductID.Equals(productItem.ProductID)) { productItem.CheckedRadio = false; } } } }