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
#2
Do you have a simple test case showing this?
Reply
#3
(01-12-2022, 12:56 AM)Alexandre Machado Wrote: Do you have a simple test case showing this?

Hi,

I have tried to create a simple test-case to replicate the issue.

In the sample, a frame containing a 3-page tabcontrol is created at runtime when the button 'Make' is pressed. 


Another thing discovered during debugging on TIWBSTabControl, also on those responding well with a form parent; Perhaps I use it not correctly, but the TIWBSTabControl's ActivePage property is different from the EventParams 'page' parameter. The latter is found to show the correct selected page.
Thanks for looking into this.

Sincerely,
Øystein Jakobsen, Norway


Attached Files
.zip   NoTabChng.zip (Size: 8.39 KB / Downloads: 3)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)