Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIWBSTabControl in TFrame created runtime does not respond to OnAsyncChange
#1
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"));});
Reply


Messages In This Thread
TIWBSTabControl in TFrame created runtime does not respond to OnAsyncChange - by oystein.jakobsen@sas.no - 12-29-2021, 10:08 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)