protected void BindGridViews() { LocalizationUtils.LocalizeGridView(VolumeDiscountsGridView, Localization); VolumeDiscountsGridView.DataSource = HccApp.CatalogServices.VolumeDiscounts.FindByProductId(ProductId); VolumeDiscountsGridView.DataBind(); }
public void LocalizeView() { txtNewName.Attributes.Add("placeholder", Localization.GetString("txtNewName.Placeholder")); var localization = Factory.Instance.CreateLocalizationHelper(LocalResourceFile); LocalizationUtils.LocalizeGridView(gvItems, localization); }
private void LocalizeView() { txtDisplayName.Attributes["placeholder"] = Localization.GetString("txtDisplayName.EmptyMessage"); DisplayNameValidator.ErrorMessage = Localization.GetString("DisplayNameValidator.ErrorMessage"); var localization = Factory.Instance.CreateLocalizationHelper(LocalResourceFile); LocalizationUtils.LocalizeGridView(gridTaxes, localization); }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); LocalizationUtils.LocalizeGridView(gvVendors, Localization); if (!Page.IsPostBack) { InitialBindData(); } }
private void LoadPropertyLists() { var selectedProperties = HccApp.CatalogServices.ProductPropertiesFindForType(TypeId); LocalizationUtils.LocalizeGridView(gvProperties, Localization); gvProperties.DataSource = selectedProperties; gvProperties.DataBind(); lstAvailableProperties.DataSource = HccApp.CatalogServices.ProductPropertiesFindNotAssignedToType(TypeId); lstAvailableProperties.DataTextField = "PropertyName"; lstAvailableProperties.DataValueField = "Id"; lstAvailableProperties.DataBind(); }
private void LoadRoles() { var selRoles = HccApp.CatalogServices.CatalogRoles.FindByProductTypeId(new Guid(TypeId)); ddlRoles.DataTextField = "RoleName"; ddlRoles.DataValueField = "RoleName"; ddlRoles.DataSource = DnnUserController.Instance.GetRoles().Where(r => !selRoles.Any(sr => sr.RoleName == r.RoleName)); ddlRoles.DataBind(); LocalizationUtils.LocalizeGridView(gvRoles, Localization); gvRoles.DataSource = selRoles; gvRoles.DataBind(); }
protected void gvSubscriptions_DataBinding(object sender, EventArgs e) { // Check if column was found. Probably we are in PostBack and it's name was already translated var totalPayedColumn = gvSubscriptions.Columns .OfType <DataControlField>() .FirstOrDefault(c => c.HeaderText == "TotalPayed"); if (totalPayedColumn != null) { totalPayedColumn.Visible = !EditMode; } LocalizationUtils.LocalizeGridView(gvSubscriptions, Localization); }
private void LocalizeView() { txtShippingZoneName.Attributes["placeholder"] = Localization.GetString("NewZoneField.EmptyMessage"); rfvShippingZoneName.ErrorMessage = Localization.GetString("NewZoneFieldValidator.ErrorMessage"); HandlingFeeAmountCustomValidator.ErrorMessage = Localization.GetString("HandlingFeeAmountCustomValidator.ErrorMessage"); if (rbtnHandlingMethod.Items.Count == 0) { rbtnHandlingMethod.Items.Add(new ListItem(Localization.GetString("PerItem"), "0")); rbtnHandlingMethod.Items.Add(new ListItem(Localization.GetString("PerOrder"), "1")); } var localization = Factory.Instance.CreateLocalizationHelper(LocalResourceFile); LocalizationUtils.LocalizeGridView(gridZones, localization); LocalizationUtils.LocalizeGridView(gridMethods, localization); }
protected void gvItems_DataBinding(object sender, EventArgs e) { // Check if column was found. Probably we are in PostBack and it's name was already translated var shippingColumn = gvItems.Columns.OfType <DataControlField>().FirstOrDefault(c => c.HeaderText == "Shipping"); if (shippingColumn != null) { shippingColumn.Visible = !EditMode; } var actionsColumn = gvItems.Columns.OfType <DataControlField>().FirstOrDefault(c => c.HeaderText == "Actions"); if (actionsColumn != null) { actionsColumn.Visible = EditMode; } LocalizationUtils.LocalizeGridView(gvItems, Localization); }
private void LocalizeView() { var localization = Factory.Instance.CreateLocalizationHelper(LocalResourceFile); LocalizationUtils.LocalizeGridView(ProductsGridView, localization); }
private void LocalizeView() { LocalizationUtils.LocalizeGridView(gvOrders, Localization); }