Skip to content

Commit 489777f

Browse files
Grid State implementation moved to GeneXusCore module.
Issue 74024
1 parent 5f30bd2 commit 489777f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

java/src/main/java/com/genexus/webpanels/gridstate/GXGridStateHandler.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ public int getCurrentpage() {
100100

101101
public void setCurrentpage(int value) {
102102
state.CurrentPage = value;
103-
dirty = true;
104103
}
105104

106105
public GXXMLSerializable getState() {
@@ -125,21 +124,22 @@ public GXXMLSerializable getState() {
125124

126125
public void setState(GXXMLSerializable state) {
127126
this.exposedSdtGridState = state;
128-
stateFromJson(exposedSdtGridState.toJSonString());
129-
dirty = true;
127+
String jsonState = exposedSdtGridState.toJSonString();
128+
stateFromJson(jsonState);
129+
HttpContext httpContext = (HttpContext) context.getHttpContext();
130+
WebSession session = httpContext.getWebSession();
131+
session.setValue(gridName, jsonState);
130132
}
131133

132134
public void clearFilterValues() {
133135
state.InputValues.clear();
134-
dirty = true;
135136
}
136137

137138
public void addFilterValue(String name, String value) {
138139
GridStateInputValuesItem item = new GridStateInputValuesItem();
139140
item.Value = value;
140141
item.Name = name;
141-
state.InputValues.add(0, item);
142-
dirty = true;
142+
state.InputValues.add(item);
143143
}
144144

145145
public int getFiltercount() {

0 commit comments

Comments
 (0)