Skip to content

Commit 38a472e

Browse files
Changes for issue 95191 introduced a compatibility-breaking change that causes build errors in sources generated with the v17u8 release. Restored the previous signature of ajax_rsp_assign_grid to maintain backward compatibility
1 parent 4d7a01c commit 38a472e

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

dotnet/src/dotnetframework/GxClasses/Core/Web/HttpAjaxContext.cs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ public interface IHttpAjaxContext
3737
void ajax_rsp_assign_prop(String CmpPrefix, bool IsMasterPage, String Control, String Property, String Value, bool sendAjax);
3838
void ajax_rsp_assign_uc_prop(String CmpPrefix, bool IsMasterPage, String Control, String Property, String Value);
3939
#pragma warning disable CA1707 // Identifiers should not contain underscores
40-
void ajax_rsp_assign_grid(String ControlName, Object GridObj, String Control);
40+
void ajax_rsp_assign_grid(String ControlName, Object GridObj, String Control);
41+
void ajax_rsp_assign_grid(String ControlName, Object GridObj);
4142
#pragma warning restore CA1707 // Identifiers should not contain underscores
4243
void AddStylesheetToLoad(String url);
4344
void AddStylesHidden();
@@ -449,7 +450,17 @@ public void ajax_rsp_assign_uc_prop(String CmpContext, bool IsMasterPage, String
449450
ajax_rsp_assign_hidden(Control + "_" + Property, Value);
450451
}
451452
}
452-
453+
public void ajax_rsp_assign_grid(String GridName, Object GridObj)
454+
{
455+
try
456+
{
457+
Grids.Add(((IGxJSONAble)GridObj).GetJSONObject());
458+
}
459+
catch (Exception ex)
460+
{
461+
GXLogging.Error(log, "ajax_rsp_assign_grid error", ex);
462+
}
463+
}
453464
public void ajax_rsp_assign_grid(String GridName, Object GridObj, String Control)
454465
{
455466
try

0 commit comments

Comments
 (0)