From 80ba23ab43809dbdbcf8067519e1d328c2416902 Mon Sep 17 00:00:00 2001 From: Will Strohl Date: Mon, 18 May 2020 20:18:33 -0700 Subject: [PATCH 1/2] Only show product sort when there is more than one option --- .../MyViewSet/Views/Shared/_Pager.cshtml | 13 ++++++++----- .../SocialSpokes/Views/Shared/_Pager.cshtml | 13 ++++++++----- .../Hotcakes/CategoryViewer/Settings.ascx | 8 ++++---- .../Hotcakes/Core/Controllers/CategoryController.cs | 1 - .../SocialSpokes/Views/Shared/_Pager.cshtml | 13 ++++++++----- .../_default/Views/Shared/_Pager.cshtml | 13 ++++++++----- 6 files changed, 36 insertions(+), 25 deletions(-) diff --git a/DevSamples/MyViewSet/Portals/_default/HotcakesViews/MyViewSet/Views/Shared/_Pager.cshtml b/DevSamples/MyViewSet/Portals/_default/HotcakesViews/MyViewSet/Views/Shared/_Pager.cshtml index e4c6ba41a..25f7c553a 100644 --- a/DevSamples/MyViewSet/Portals/_default/HotcakesViews/MyViewSet/Views/Shared/_Pager.cshtml +++ b/DevSamples/MyViewSet/Portals/_default/HotcakesViews/MyViewSet/Views/Shared/_Pager.cshtml @@ -42,11 +42,14 @@
@if (ViewData["sortByList"] != null) { -
- - @Html.DropDownList("sortOrderSelect", (IEnumerable)ViewData["sortByList"], new { onchange = "window.open(this.options[this.selectedIndex].value, '_top')" }) -
- + var sortList = (IEnumerable) ViewData["sortByList"]; + if (sortList.Count() > 1) + { +
+ + @Html.DropDownList("sortOrderSelect", (IEnumerable) ViewData["sortByList"], new {onchange = "window.open(this.options[this.selectedIndex].value, '_top')"}) +
+ } } @if (Model.TotalPages > 1) { diff --git a/DevSamples/MyViewSet/Portals/_default/HotcakesViews/SocialSpokes/Views/Shared/_Pager.cshtml b/DevSamples/MyViewSet/Portals/_default/HotcakesViews/SocialSpokes/Views/Shared/_Pager.cshtml index 0ae2b8572..10bdb79f8 100644 --- a/DevSamples/MyViewSet/Portals/_default/HotcakesViews/SocialSpokes/Views/Shared/_Pager.cshtml +++ b/DevSamples/MyViewSet/Portals/_default/HotcakesViews/SocialSpokes/Views/Shared/_Pager.cshtml @@ -42,11 +42,14 @@
@if (ViewData["sortByList"] != null) { -
- - @Html.DropDownList("sortOrderSelect", (IEnumerable)ViewData["sortByList"], new { onchange = "window.open(this.options[this.selectedIndex].value, '_top')" }) -
- + var sortList = (IEnumerable) ViewData["sortByList"]; + if (sortList.Count() > 1) + { +
+ + @Html.DropDownList("sortOrderSelect", (IEnumerable) ViewData["sortByList"], new {onchange = "window.open(this.options[this.selectedIndex].value, '_top')"}) +
+ } } @if (Model.TotalPages > 1) { diff --git a/Website/DesktopModules/Hotcakes/CategoryViewer/Settings.ascx b/Website/DesktopModules/Hotcakes/CategoryViewer/Settings.ascx index 54ff04c76..ab0878a33 100644 --- a/Website/DesktopModules/Hotcakes/CategoryViewer/Settings.ascx +++ b/Website/DesktopModules/Hotcakes/CategoryViewer/Settings.ascx @@ -15,11 +15,11 @@
- +
- +
@@ -27,11 +27,11 @@
- +
- +
diff --git a/Website/DesktopModules/Hotcakes/Core/Controllers/CategoryController.cs b/Website/DesktopModules/Hotcakes/Core/Controllers/CategoryController.cs index 0204fe038..826bd60fb 100644 --- a/Website/DesktopModules/Hotcakes/Core/Controllers/CategoryController.cs +++ b/Website/DesktopModules/Hotcakes/Core/Controllers/CategoryController.cs @@ -36,7 +36,6 @@ using Hotcakes.Commerce.Content; using Hotcakes.Commerce.Extensions; using Hotcakes.Commerce.Search; -using Hotcakes.Commerce.Social; using Hotcakes.Commerce.Storage; using Hotcakes.Commerce.Urls; using Hotcakes.Commerce.Utilities; diff --git a/Website/Portals/_default/HotcakesViews/SocialSpokes/Views/Shared/_Pager.cshtml b/Website/Portals/_default/HotcakesViews/SocialSpokes/Views/Shared/_Pager.cshtml index 0ae2b8572..10bdb79f8 100644 --- a/Website/Portals/_default/HotcakesViews/SocialSpokes/Views/Shared/_Pager.cshtml +++ b/Website/Portals/_default/HotcakesViews/SocialSpokes/Views/Shared/_Pager.cshtml @@ -42,11 +42,14 @@
@if (ViewData["sortByList"] != null) { -
- - @Html.DropDownList("sortOrderSelect", (IEnumerable)ViewData["sortByList"], new { onchange = "window.open(this.options[this.selectedIndex].value, '_top')" }) -
- + var sortList = (IEnumerable) ViewData["sortByList"]; + if (sortList.Count() > 1) + { +
+ + @Html.DropDownList("sortOrderSelect", (IEnumerable) ViewData["sortByList"], new {onchange = "window.open(this.options[this.selectedIndex].value, '_top')"}) +
+ } } @if (Model.TotalPages > 1) { diff --git a/Website/Portals/_default/HotcakesViews/_default/Views/Shared/_Pager.cshtml b/Website/Portals/_default/HotcakesViews/_default/Views/Shared/_Pager.cshtml index e4c6ba41a..25f7c553a 100644 --- a/Website/Portals/_default/HotcakesViews/_default/Views/Shared/_Pager.cshtml +++ b/Website/Portals/_default/HotcakesViews/_default/Views/Shared/_Pager.cshtml @@ -42,11 +42,14 @@
@if (ViewData["sortByList"] != null) { -
- - @Html.DropDownList("sortOrderSelect", (IEnumerable)ViewData["sortByList"], new { onchange = "window.open(this.options[this.selectedIndex].value, '_top')" }) -
- + var sortList = (IEnumerable) ViewData["sortByList"]; + if (sortList.Count() > 1) + { +
+ + @Html.DropDownList("sortOrderSelect", (IEnumerable) ViewData["sortByList"], new {onchange = "window.open(this.options[this.selectedIndex].value, '_top')"}) +
+ } } @if (Model.TotalPages > 1) { From 9bf734f751b7283d9f2c21c4c25bd830708649ca Mon Sep 17 00:00:00 2001 From: Will Strohl Date: Tue, 19 May 2020 12:59:15 -0700 Subject: [PATCH 2/2] Resolved issues w/ radcombobox removal in all settings views --- .../Hotcakes/Cart/Settings.ascx | 3 +- .../App_LocalResources/Settings.ascx.resx | 18 ++++++ .../Hotcakes/CategoryMenu/Settings.ascx | 31 ++++------ .../Hotcakes/CategoryMenu/Settings.ascx.cs | 8 +++ .../Hotcakes/Checkout/Settings.ascx | 9 ++- .../Hotcakes/ContentBlocks/Settings.ascx | 4 +- .../ProductPicker.ascx.resx | 12 ++++ .../Hotcakes/Core/Controls/ProductPicker.ascx | 42 ++++++------- .../Core/Controls/ProductPicker.ascx.cs | 31 +++++++++- .../Hotcakes/FeaturedProducts/Settings.ascx | 2 +- .../Hotcakes/Hotcakes.Modules.csproj | 1 + .../Hotcakes/LastProductsViewed/Settings.ascx | 2 +- .../Hotcakes/MiniCart/Settings.ascx | 2 +- .../Hotcakes/OrderHistory/Settings.ascx | 2 +- .../App_LocalResources/Settings.ascx.resx | 21 +++++++ .../Hotcakes/ProductGrid/Settings.ascx | 59 +++++++++---------- .../Hotcakes/ProductGrid/Settings.ascx.cs | 23 +++++--- .../Hotcakes/ProductReviews/Settings.ascx | 2 +- .../Hotcakes/ProductViewer/Settings.ascx | 4 +- .../Hotcakes/Search/Settings.ascx | 2 +- .../Hotcakes/SearchInput/Settings.ascx | 2 +- .../Hotcakes/Top10Products/Settings.ascx | 2 +- .../Hotcakes/TopWeeklySellers/Settings.ascx | 2 +- Website/DesktopModules/Hotcakes/module.css | 3 + 24 files changed, 183 insertions(+), 104 deletions(-) create mode 100644 Website/DesktopModules/Hotcakes/module.css diff --git a/Website/DesktopModules/Hotcakes/Cart/Settings.ascx b/Website/DesktopModules/Hotcakes/Cart/Settings.ascx index d0c48df36..b8da58cc9 100644 --- a/Website/DesktopModules/Hotcakes/Cart/Settings.ascx +++ b/Website/DesktopModules/Hotcakes/Cart/Settings.ascx @@ -11,8 +11,7 @@
- +
diff --git a/Website/DesktopModules/Hotcakes/CategoryMenu/App_LocalResources/Settings.ascx.resx b/Website/DesktopModules/Hotcakes/CategoryMenu/App_LocalResources/Settings.ascx.resx index c51f7a636..b719405a8 100644 --- a/Website/DesktopModules/Hotcakes/CategoryMenu/App_LocalResources/Settings.ascx.resx +++ b/Website/DesktopModules/Hotcakes/CategoryMenu/App_LocalResources/Settings.ascx.resx @@ -159,4 +159,22 @@ Select a view + + Show All Categories + + + Show All Categories for Current Parent + + + Show Children, Peers, and Parents + + + Show Children of Selected Category + + + Show Root Categories Only + + + Show Selected Categories + \ No newline at end of file diff --git a/Website/DesktopModules/Hotcakes/CategoryMenu/Settings.ascx b/Website/DesktopModules/Hotcakes/CategoryMenu/Settings.ascx index 98c03e4a1..8eb219bd8 100644 --- a/Website/DesktopModules/Hotcakes/CategoryMenu/Settings.ascx +++ b/Website/DesktopModules/Hotcakes/CategoryMenu/Settings.ascx @@ -12,38 +12,29 @@
- +
- +
- - - - - - - - - - +
+ +
- -
- +
@@ -54,14 +45,16 @@
- +
- - +
+ + +
@@ -77,7 +70,7 @@
- +
diff --git a/Website/DesktopModules/Hotcakes/CategoryMenu/Settings.ascx.cs b/Website/DesktopModules/Hotcakes/CategoryMenu/Settings.ascx.cs index f65c3c8be..66cd21204 100644 --- a/Website/DesktopModules/Hotcakes/CategoryMenu/Settings.ascx.cs +++ b/Website/DesktopModules/Hotcakes/CategoryMenu/Settings.ascx.cs @@ -74,6 +74,14 @@ private void LoadData() TitleField.Text = Convert.ToString(ModuleSettings["Title"]); + ModeField.Items.Clear(); + ModeField.Items.Add(new ListItem(LocalizeString("ModeField_ShowRootOnly"), "0")); + ModeField.Items.Add(new ListItem(LocalizeString("ModeField_ShowAll"), "1")); + ModeField.Items.Add(new ListItem(LocalizeString("ModeField_ShowChildrenPeerParents"), "2")); + ModeField.Items.Add(new ListItem(LocalizeString("ModeField_ShowAllParent"), "3")); + ModeField.Items.Add(new ListItem(LocalizeString("ModeField_ShowSelected"), "4")); + ModeField.Items.Add(new ListItem(LocalizeString("ModeField_ShowChildrenSelected"), "5")); + var mode = ModuleSettings["CategoryMenuMode"] != null ? ModuleSettings["CategoryMenuMode"].ToString() : "0"; if (ModeField.Items.FindByValue(mode) != null) { diff --git a/Website/DesktopModules/Hotcakes/Checkout/Settings.ascx b/Website/DesktopModules/Hotcakes/Checkout/Settings.ascx index d299c7084..564f2d57e 100644 --- a/Website/DesktopModules/Hotcakes/Checkout/Settings.ascx +++ b/Website/DesktopModules/Hotcakes/Checkout/Settings.ascx @@ -11,8 +11,7 @@
- +
@@ -20,7 +19,7 @@
- +
@@ -28,7 +27,7 @@
- +
@@ -36,7 +35,7 @@
- +
diff --git a/Website/DesktopModules/Hotcakes/ContentBlocks/Settings.ascx b/Website/DesktopModules/Hotcakes/ContentBlocks/Settings.ascx index 2543cecd7..be9791790 100644 --- a/Website/DesktopModules/Hotcakes/ContentBlocks/Settings.ascx +++ b/Website/DesktopModules/Hotcakes/ContentBlocks/Settings.ascx @@ -11,7 +11,7 @@
- +
@@ -19,7 +19,7 @@
- +
diff --git a/Website/DesktopModules/Hotcakes/Core/Controls/App_LocalResources/ProductPicker.ascx.resx b/Website/DesktopModules/Hotcakes/Core/Controls/App_LocalResources/ProductPicker.ascx.resx index 81d1dde35..ae4752f8e 100644 --- a/Website/DesktopModules/Hotcakes/Core/Controls/App_LocalResources/ProductPicker.ascx.resx +++ b/Website/DesktopModules/Hotcakes/Core/Controls/App_LocalResources/ProductPicker.ascx.resx @@ -132,4 +132,16 @@ Vendor + + Available for Sale + + + Name + + + Site Price + + + SKU + \ No newline at end of file diff --git a/Website/DesktopModules/Hotcakes/Core/Controls/ProductPicker.ascx b/Website/DesktopModules/Hotcakes/Core/Controls/ProductPicker.ascx index ba687770e..101055635 100644 --- a/Website/DesktopModules/Hotcakes/Core/Controls/ProductPicker.ascx +++ b/Website/DesktopModules/Hotcakes/Core/Controls/ProductPicker.ascx @@ -15,25 +15,19 @@
- +
- - - + +
- - +
- - +
@@ -42,11 +36,13 @@
- + + + + - +
@@ -57,15 +53,15 @@
-
- - - - + + + + + - <%# Convert.ToBoolean(Eval("IsAvailableForSale")) ? "Yes" : "No" %> - - + + +
diff --git a/Website/DesktopModules/Hotcakes/Core/Controls/ProductPicker.ascx.cs b/Website/DesktopModules/Hotcakes/Core/Controls/ProductPicker.ascx.cs index e02f2d989..668e20446 100644 --- a/Website/DesktopModules/Hotcakes/Core/Controls/ProductPicker.ascx.cs +++ b/Website/DesktopModules/Hotcakes/Core/Controls/ProductPicker.ascx.cs @@ -28,6 +28,7 @@ using System.IO; using System.Web.UI; using System.Web.UI.WebControls; +using DotNetNuke.Security; using DotNetNuke.Services.Localization; using Hotcakes.Commerce; using Hotcakes.Commerce.Catalog; @@ -130,7 +131,7 @@ protected override void OnInit(EventArgs e) base.OnInit(e); if (!DisplayInventory) - GetGridViewColumnByName("Inventory").Visible = false; + GetGridViewColumnByName("Available").Visible = false; if (!DisplayPrice) GetGridViewColumnByName("SitePrice").Visible = false; } @@ -141,6 +142,7 @@ protected override void OnLoad(EventArgs e) if (!IsInitialized) { + LocalizeView(); PopulateCategories(); PopulateManufacturers(); PopulateVendors(); @@ -152,6 +154,11 @@ protected override void OnLoad(EventArgs e) } } + private void LocalizeView() + { + Localization.LocalizeGridView(ref rgProducts, LocalResourceFile); + } + private void PopulateCategories() { var tree = CategoriesHelper.ListFullTreeWithIndents(HccApp.CatalogServices.Categories); @@ -188,11 +195,12 @@ protected void btnSearch_Click(object sender, EventArgs e) private ProductSearchCriteria GetCurrentCriteria() { + var security = new PortalSecurity(); var c = new ProductSearchCriteria(); if (FilterField.Text.Trim().Length > 0) { - c.Keyword = FilterField.Text.Trim(); + c.Keyword = security.InputFilter(FilterField.Text.Trim(), PortalSecurity.FilterFlag.NoMarkup); } if (!string.IsNullOrEmpty(ManufacturerFilter.SelectedValue)) { @@ -208,7 +216,7 @@ private ProductSearchCriteria GetCurrentCriteria() } if (ExcludeCategoryBvin.Trim().Length > 0) { - c.NotCategoryId = ExcludeCategoryBvin.Trim(); + c.NotCategoryId = security.InputFilter(ExcludeCategoryBvin.Trim(), PortalSecurity.FilterFlag.NoMarkup); } c.DisplayInactiveProducts = true; return c; @@ -220,6 +228,12 @@ public void RunSearch() BindGrid(); } + protected void rgProducts_PageIndexChanging(object sender, GridViewPageEventArgs e) + { + rgProducts.PageIndex = e.NewPageIndex; + BindGrid(); + } + protected void ManufacturerFilter_SelectedIndexChanged(object sender, EventArgs e) { BindGrid(); @@ -243,6 +257,7 @@ protected void BindGrid() rgProducts.PageSize, ref totalCount); rgProducts.DataSource = items; + rgProducts.DataBind(); rgProducts.VirtualItemCount = totalCount; } @@ -258,5 +273,15 @@ private DataControlField GetGridViewColumnByName(string name) return null; } + + protected string ParseProductAvailability(object value) + { + if (value != null) + { + return Convert.ToBoolean(value) ? "Yes" : "No"; + } + + return "No"; + } } } \ No newline at end of file diff --git a/Website/DesktopModules/Hotcakes/FeaturedProducts/Settings.ascx b/Website/DesktopModules/Hotcakes/FeaturedProducts/Settings.ascx index 958c86952..d0c4e62f0 100644 --- a/Website/DesktopModules/Hotcakes/FeaturedProducts/Settings.ascx +++ b/Website/DesktopModules/Hotcakes/FeaturedProducts/Settings.ascx @@ -11,7 +11,7 @@
- +
diff --git a/Website/DesktopModules/Hotcakes/Hotcakes.Modules.csproj b/Website/DesktopModules/Hotcakes/Hotcakes.Modules.csproj index f30149f04..7faebd72e 100644 --- a/Website/DesktopModules/Hotcakes/Hotcakes.Modules.csproj +++ b/Website/DesktopModules/Hotcakes/Hotcakes.Modules.csproj @@ -386,6 +386,7 @@ + diff --git a/Website/DesktopModules/Hotcakes/LastProductsViewed/Settings.ascx b/Website/DesktopModules/Hotcakes/LastProductsViewed/Settings.ascx index 4cc49024a..28df518c0 100644 --- a/Website/DesktopModules/Hotcakes/LastProductsViewed/Settings.ascx +++ b/Website/DesktopModules/Hotcakes/LastProductsViewed/Settings.ascx @@ -11,7 +11,7 @@
- +
diff --git a/Website/DesktopModules/Hotcakes/MiniCart/Settings.ascx b/Website/DesktopModules/Hotcakes/MiniCart/Settings.ascx index a90297648..4f9f54a86 100644 --- a/Website/DesktopModules/Hotcakes/MiniCart/Settings.ascx +++ b/Website/DesktopModules/Hotcakes/MiniCart/Settings.ascx @@ -11,7 +11,7 @@
- +
diff --git a/Website/DesktopModules/Hotcakes/OrderHistory/Settings.ascx b/Website/DesktopModules/Hotcakes/OrderHistory/Settings.ascx index 4928e4b68..ca5c7af12 100644 --- a/Website/DesktopModules/Hotcakes/OrderHistory/Settings.ascx +++ b/Website/DesktopModules/Hotcakes/OrderHistory/Settings.ascx @@ -11,7 +11,7 @@
- +
diff --git a/Website/DesktopModules/Hotcakes/ProductGrid/App_LocalResources/Settings.ascx.resx b/Website/DesktopModules/Hotcakes/ProductGrid/App_LocalResources/Settings.ascx.resx index 9d75a0876..8d89cb8fe 100644 --- a/Website/DesktopModules/Hotcakes/ProductGrid/App_LocalResources/Settings.ascx.resx +++ b/Website/DesktopModules/Hotcakes/ProductGrid/App_LocalResources/Settings.ascx.resx @@ -120,15 +120,24 @@ Choose Products + + Add Selected Products + Number of Columns (None selected) + + Product Image + Product Image + + Product Name + Product Name @@ -150,4 +159,16 @@ View Settings + + Remove + + + Down + + + Up + + + Please enter a numeric value + \ No newline at end of file diff --git a/Website/DesktopModules/Hotcakes/ProductGrid/Settings.ascx b/Website/DesktopModules/Hotcakes/ProductGrid/Settings.ascx index 7851af71d..e55800240 100644 --- a/Website/DesktopModules/Hotcakes/ProductGrid/Settings.ascx +++ b/Website/DesktopModules/Hotcakes/ProductGrid/Settings.ascx @@ -1,5 +1,5 @@ <%@ Control Language="C#" AutoEventWireup="True" Inherits="Hotcakes.Modules.ProductGrid.Settings" CodeBehind="Settings.ascx.cs" %> -<%@ Register Src="../Core/Controls/ProductPicker.ascx" TagName="ProductPicker" TagPrefix="uc" %> +<%@ Register Src="../Core/Controls/ProductPicker.ascx" TagName="ProductPicker" TagPrefix="hcc" %> <%@ Register Src="../../../controls/labelcontrol.ascx" TagName="labelcontrol" TagPrefix="dnn" %> <%@ Import Namespace="DotNetNuke.Services.Localization" %> @@ -15,62 +15,57 @@
- +

<%=LocalizeString("AddProducts")%>

- - + +

<%=LocalizeString("ProductsDisplay")%>

- + + + + - - + + - " /> + - - - - - + + + - + - - - + + - + - - - + + - + - - +
- - - + + +
diff --git a/Website/DesktopModules/Hotcakes/ProductGrid/Settings.ascx.cs b/Website/DesktopModules/Hotcakes/ProductGrid/Settings.ascx.cs index 5277a833b..ecda912d7 100644 --- a/Website/DesktopModules/Hotcakes/ProductGrid/Settings.ascx.cs +++ b/Website/DesktopModules/Hotcakes/ProductGrid/Settings.ascx.cs @@ -29,6 +29,7 @@ using System.Linq; using System.Web.UI.WebControls; using DotNetNuke.Entities.Modules; +using DotNetNuke.Services.Localization; using Hotcakes.Commerce.Catalog; using Hotcakes.Commerce.Dnn.Utils; using Hotcakes.Commerce.Dnn.Web; @@ -43,6 +44,8 @@ protected override void OnInit(EventArgs e) { base.OnInit(e); btnAdd.Click += btnAdd_Click; + rgProducts.RowDeleting += rgProducts_OnDeleteCommand; + rgProducts.RowCommand += rgProducts_OnItemCommand; } public override void LoadSettings() @@ -73,8 +76,9 @@ protected override void OnLoad(EventArgs e) base.OnLoad(e); if (!Page.IsPostBack) { - var sortedProducts = GetSelectedProducts(); + LocalizeView(); + var sortedProducts = GetSelectedProducts(); LoadItems(sortedProducts); int gridColumns; @@ -91,6 +95,13 @@ protected override void OnLoad(EventArgs e) } } + private void LocalizeView() + { + Localization.LocalizeGridView(ref rgProducts, LocalResourceFile); + + valGridColumns.ErrorMessage = LocalizeString("valGridColumns.ErrorMessage"); + } + private void LoadItems(SortedList list) { if (list != null) @@ -109,7 +120,6 @@ private void LoadItems(SortedList list) } } - private void SaveItems(SortedList sortedProducts) { var items = sortedProducts.ToDictionary(item => item.Key, item => item.Value.Bvin); @@ -174,22 +184,21 @@ protected void btnAdd_Click(object sender, EventArgs e) LoadItems(sortedProducts); } - protected void rgProducts_OnDeleteCommand(object sender, DataGridCommandEventArgs e) + protected void rgProducts_OnDeleteCommand(object sender, GridViewDeleteEventArgs e) { var bvinsList = GetProductBvins(); - var key = int.Parse(rgProducts.DataKeys[e.Item.ItemIndex].ToString(), NumberStyles.Integer); + var key = int.Parse(rgProducts.DataKeys[e.RowIndex].ToString(), NumberStyles.Integer); bvinsList.Remove(key); SaveItems(bvinsList); LoadItems(GetProducts(bvinsList)); } - - protected void rgProducts_OnItemCommand(object sender, DataGridCommandEventArgs e) + protected void rgProducts_OnItemCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName.Equals("Up") || e.CommandName.Equals("Down")) { var bvinsList = GetProductBvins(); - var key = int.Parse(rgProducts.DataKeys[e.Item.ItemIndex].ToString(), NumberStyles.Integer); + var key = int.Parse(e.CommandArgument.ToString(), NumberStyles.Integer); int key2; if (e.CommandName.Equals("Up")) diff --git a/Website/DesktopModules/Hotcakes/ProductReviews/Settings.ascx b/Website/DesktopModules/Hotcakes/ProductReviews/Settings.ascx index 8cd4cc85f..7dd27f325 100644 --- a/Website/DesktopModules/Hotcakes/ProductReviews/Settings.ascx +++ b/Website/DesktopModules/Hotcakes/ProductReviews/Settings.ascx @@ -11,7 +11,7 @@
- +
diff --git a/Website/DesktopModules/Hotcakes/ProductViewer/Settings.ascx b/Website/DesktopModules/Hotcakes/ProductViewer/Settings.ascx index e2690f4f8..fad97f2be 100644 --- a/Website/DesktopModules/Hotcakes/ProductViewer/Settings.ascx +++ b/Website/DesktopModules/Hotcakes/ProductViewer/Settings.ascx @@ -8,7 +8,7 @@
- +
@@ -16,7 +16,7 @@
- +
diff --git a/Website/DesktopModules/Hotcakes/Search/Settings.ascx b/Website/DesktopModules/Hotcakes/Search/Settings.ascx index 1c96f7cf2..e15dff4c3 100644 --- a/Website/DesktopModules/Hotcakes/Search/Settings.ascx +++ b/Website/DesktopModules/Hotcakes/Search/Settings.ascx @@ -11,7 +11,7 @@
- +
diff --git a/Website/DesktopModules/Hotcakes/SearchInput/Settings.ascx b/Website/DesktopModules/Hotcakes/SearchInput/Settings.ascx index 622a0fcfc..b1f543248 100644 --- a/Website/DesktopModules/Hotcakes/SearchInput/Settings.ascx +++ b/Website/DesktopModules/Hotcakes/SearchInput/Settings.ascx @@ -11,7 +11,7 @@
- +
diff --git a/Website/DesktopModules/Hotcakes/Top10Products/Settings.ascx b/Website/DesktopModules/Hotcakes/Top10Products/Settings.ascx index 80f8cf384..face26cc7 100644 --- a/Website/DesktopModules/Hotcakes/Top10Products/Settings.ascx +++ b/Website/DesktopModules/Hotcakes/Top10Products/Settings.ascx @@ -11,7 +11,7 @@
- +
diff --git a/Website/DesktopModules/Hotcakes/TopWeeklySellers/Settings.ascx b/Website/DesktopModules/Hotcakes/TopWeeklySellers/Settings.ascx index dde2ec89a..df642c069 100644 --- a/Website/DesktopModules/Hotcakes/TopWeeklySellers/Settings.ascx +++ b/Website/DesktopModules/Hotcakes/TopWeeklySellers/Settings.ascx @@ -11,7 +11,7 @@
- +
diff --git a/Website/DesktopModules/Hotcakes/module.css b/Website/DesktopModules/Hotcakes/module.css new file mode 100644 index 000000000..7f4dfec5b --- /dev/null +++ b/Website/DesktopModules/Hotcakes/module.css @@ -0,0 +1,3 @@ +.hcListBox { + min-width: 158px; +} \ No newline at end of file