Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rerendering CG Tab Control
#1
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?
Reply
#2
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.
Reply
#3
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.
Reply
#4
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?
Reply
#5
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.
Reply
#6
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. :-(
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)