Skip to content
Snippets Groups Projects
Commit 5e742763 authored by pkupczyk's avatar pkupczyk
Browse files

SP-241 / BIS-122 : Embedded grids need to persist display settings

SVN: 26404
parent c33556ad
No related branches found
No related tags found
No related merge requests found
...@@ -690,6 +690,14 @@ public abstract class TypedTableGrid<T extends Serializable> extends LayoutConta ...@@ -690,6 +690,14 @@ public abstract class TypedTableGrid<T extends Serializable> extends LayoutConta
{ {
ResultSetFetchConfig<String> fetchConfig = ResultSetFetchConfig<String> fetchConfig =
ResultSetFetchConfig.createFetchFromCache(resultSetKeyOrNull); ResultSetFetchConfig.createFetchFromCache(resultSetKeyOrNull);
SortInfo sortInfo = getGridSortInfo();
if (sortInfo != null)
{
pagingLoader.setSortField(sortInfo.getSortField());
pagingLoader.setSortDir(translate(sortInfo.getSortDir()));
}
reloadData(fetchConfig); reloadData(fetchConfig);
} }
} }
...@@ -1751,6 +1759,7 @@ public abstract class TypedTableGrid<T extends Serializable> extends LayoutConta ...@@ -1751,6 +1759,7 @@ public abstract class TypedTableGrid<T extends Serializable> extends LayoutConta
+ pendingFetchManager.tryTopPendingFetchConfig()); + pendingFetchManager.tryTopPendingFetchConfig());
return; return;
} }
pendingFetchManager.pushPendingFetchConfig(resultSetFetchConfig); pendingFetchManager.pushPendingFetchConfig(resultSetFetchConfig);
pagingLoader.load(0, PAGE_SIZE); pagingLoader.load(0, PAGE_SIZE);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment