|
@@ -70,8 +70,8 @@ namespace PRSDesktop
|
|
|
_settings.ViewType == ScreenViewType.Details ? DynamicSplitPanelView.Detail : DynamicSplitPanelView.Combined;
|
|
|
SplitPanel.AnchorWidth = _settings.AnchorWidth;
|
|
|
|
|
|
- Products.Options.PageSize = _globalsettings.PageSize;
|
|
|
Products.ColumnsTag = _settings.ViewType == ScreenViewType.Register ? _settings.ViewType.ToString() : "";
|
|
|
+ Products.Reconfigure();
|
|
|
Products.Refresh(true, false);
|
|
|
Products.OnSelectItem += Products_OnSelectItem;
|
|
|
|
|
@@ -98,7 +98,7 @@ namespace PRSDesktop
|
|
|
if (grid.EditItems(new ProductsGlobalSettings[] { _globalsettings }))
|
|
|
{
|
|
|
new GlobalConfiguration<ProductsGlobalSettings>().Save(_globalsettings);
|
|
|
- Products.Options.PageSize = _globalsettings.PageSize;
|
|
|
+ Products.Reconfigure();
|
|
|
Refresh();
|
|
|
}
|
|
|
|
|
@@ -120,6 +120,11 @@ namespace PRSDesktop
|
|
|
return new ProductDataModel(new Filter<Product>(x => x.ID).InList(ids));
|
|
|
}
|
|
|
|
|
|
+ private void Products_OnReconfigure(DynamicGridOptions options)
|
|
|
+ {
|
|
|
+ options.PageSize = _globalsettings.PageSize;
|
|
|
+ }
|
|
|
+
|
|
|
public void Refresh()
|
|
|
{
|
|
|
Groups.Refresh(false, true);
|