Skip to main content
Question

Custom screen Grid Refresh issue

  • January 6, 2026
  • 11 replies
  • 95 views

Forum|alt.badge.img

Hi,

I have a custom screen with multiple tabs. The tabs are dynamically displaying based on header '’document type'’ field. The tabs are working correctly when i open the screen. But when I navigate to the same screen using PXRequiredRedirectException from a custom process screen, the tabs are not populating values. Only the first tab works correctly. Others will populate when i refresh it manually. How to solve this?

 

 

11 replies

Forum|alt.badge.img+3
  • Jr Varsity II
  • January 6, 2026

Hi ​@jayasebastian00 ,


Can you check you have used RepaintOnDemand grid property for the grids which are conditionally enabling


Forum|alt.badge.img

Yes, RepaintOnDemand is currently set to false.


Forum|alt.badge.img+3
  • Jr Varsity II
  • January 6, 2026

@jayasebastian00  can you please try by RepaintOnDemand="True"


Forum|alt.badge.img

Thank you for the suggestion. I tested it, but it did not work as expected.


jinin
Pro I
Forum|alt.badge.img+12
  • Pro I
  • January 6, 2026

Hi ​@jayasebastian00 ,

Could you please try using PXRedirectHelper.TryRedirect instead of PXRequiredRedirectException and see if that resolves the issue?
Sample:
PXRedirectHelper.TryRedirect(APDocumentList.Cache, APDocumentList.Current, "Document", PXRedirectHelper.WindowMode.NewWindow);

also, try to Force View.RequestRefresh() for dependent tabs (RowSelected event)
    DetailView1.View.RequestRefresh();


Forum|alt.badge.img

Thank you, I will try this.


Forum|alt.badge.img

I tried it, but it didn’t work.


jinin
Pro I
Forum|alt.badge.img+12
  • Pro I
  • January 6, 2026

Hi ​@jayasebastian00 ,

Can you force-load all dependent views before redirect and check once?

Example:

YourEntryGraph graph = PXGraph.CreateInstance<YourEntryGraph>();

graph.Document.Current =
    graph.Document.Search<YourHeaderDAC.refNbr>(refNbr);

// Force dependent tabs to initialize
graph.DetailView1.Select();
graph.DetailView2.Select();

throw new PXRequiredRedirectException(graph, "Document");
 


Forum|alt.badge.img+2
  • Pro II
  • January 6, 2026

@jayasebastian00 

Please try redirecting to the screen using the below code, and also verify whether any ASPX tab or grid properties (such as LoadOnDemandAutoRefresh or similar settings) could be affecting the behaviour:

throw new PXRedirectRequiredException(graph, "ViewName")
{
    Mode = PXBaseRedirectException.WindowMode.New
};


Forum|alt.badge.img

Thanks. In my grid, LoadOnDemand is set to true. Can you please guide me on where to set AutoRefresh?


Forum|alt.badge.img

I’ve tried the solutions suggested in earlier replies, but the grid still doesn’t refresh automatically—it only updates when I manually refresh.
Has anyone successfully resolved this issue, or are there other workarounds I could try? Any help would be really appreciated!