File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
java/src/main/java/com/genexus/webpanels/gridstate Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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 () {
You can’t perform that action at this time.
0 commit comments