12-29-2021, 10:08 AM
I have a TIWBSTabControl in a frame.
When this frame is created at runtime (with a TIWBSRegion as parent), the tabcontrol OnAsyncChange is not responding until the page is reloaded/refreshed.
If the parent TIWBSRegion.AsyncRefreshControl is called after frame create, the tabcontrol OnAsyncChange fires, but the same call makes TIWBSButtons in same frame unresponsive.
Workaround was to send a javascript which triggers a callback event, but could this be a TIWBSTabControl issue when created runtime within a frame?
Workaround script where "ajaxCallbackAction" is a custom js library function used to trigger callback events:
$("#'+fMyFrame.MyTabControl.HTMLName+'_tabs").off("shown.bs.tab").on("shown.bs.tab", function(e){ajaxCallbackAction("mytabchange",$(e.target).attr("tabindex"));});
When this frame is created at runtime (with a TIWBSRegion as parent), the tabcontrol OnAsyncChange is not responding until the page is reloaded/refreshed.
If the parent TIWBSRegion.AsyncRefreshControl is called after frame create, the tabcontrol OnAsyncChange fires, but the same call makes TIWBSButtons in same frame unresponsive.
Workaround was to send a javascript which triggers a callback event, but could this be a TIWBSTabControl issue when created runtime within a frame?
Workaround script where "ajaxCallbackAction" is a custom js library function used to trigger callback events:
$("#'+fMyFrame.MyTabControl.HTMLName+'_tabs").off("shown.bs.tab").on("shown.bs.tab", function(e){ajaxCallbackAction("mytabchange",$(e.target).attr("tabindex"));});