void ibtnFillGroupAttributes_Click(object sender, ImageClickEventArgs e)
{
gvNotConnectedCombinationAttributes.DataSource = new List<AJH.CMS.Core.Entities.Attribute>();
int groupId = -1;
int.TryParse(cddGroup.SelectedValue, out groupId);
if (groupId > 0)
{
List<AJH.CMS.Core.Entities.Attribute> combinationAttributes = AttributeManager.GetAttributesByCombinationID(SelecedCombinationProductId, CMSContext.LanguageID);
List<AJH.CMS.Core.Entities.Attribute> groupAttributes = AttributeManager.GetAttributesByGroupID(groupId, CMSContext.LanguageID);
if (combinationAttributes != null && groupAttributes != null)
{
List<int> combinationAttributesIds = combinationAttributes.Select(ca => ca.ID).ToList();
groupAttributes = groupAttributes.Where(ga => !combinationAttributesIds.Contains(ga.ID)).ToList();
}
gvNotConnectedCombinationAttributes.DataSource = groupAttributes;
}
gvNotConnectedCombinationAttributes.DataBind();
upnlCombinationProductDetails.Update();
}