Posts: 11
Threads: 5
Joined: Dec 2024
Reputation:
0
Location: Spain
I have some controls that dynamically cause tabs on a TIWCGJQTabs control to appear or disappear, depending on their value. Up until now, I've used AjaxRerender on the TIWCGJQTabs to reflect the change immediately. However, if there is a TIWCGJQGrid on the tab being revealed, it does not render properly (or at all, really) in the latest DevTools version. I have to do a full refresh of the whole form for it to appear. Any suggestions?
Posts: 9
Threads: 2
Joined: Aug 2020
Reputation:
0
Location: US
Did you find a resolution to this? I am having similar issues with grids not displaying when switching tabs. Testing the DevTools trial on some old IW+CG apps.
Posts: 11
Threads: 5
Joined: Dec 2024
Reputation:
0
Location: Spain
No, still waiting for a reply from Alexandre. It happens with a few other controls as well, but not all - if they are invisible initially, even with the parent "RenderInvisibleControls" set to true, they are rendered with 0 height and so an AjaxRerender doesn't show them. Generally, all our old IW + CG apps work fine in the new version except for this issue. The only solution at present seems to be a refresh of the whole form via Javascript.
Posts: 9
Threads: 2
Joined: Aug 2020
Reputation:
0
Location: US
I am also noticing an issue with grids in dialogs not displaying until the form is refreshed. May I ask how you are doing this via Javascript?
Posts: 9
Threads: 2
Joined: Aug 2020
Reputation:
0
Location: US
I found a solution to my issue with the grids not displaying when switching tabs. All my tabs and grids are created at design time so not sure if this will help at all.
In my tabs OnSelect event I was checking the activetabindex and then calling RenderRegionAysnc(Grid1... ) to get the grid to display. If I remove that call and used grid1.visible := true the grids now display for me.
Posts: 11
Threads: 5
Joined: Dec 2024
Reputation:
0
Location: Spain
To refresh the form, I'm using: WebApplication.CallBackResponse.AddJavaScriptToExecute('location.reload();');
The grid.visible works if the grid is "static" - but we hide or show columns depending on different conditions, so it has to be rerendered. :-(