We are currently looking at improving performance of our applications and one of the issues that came up was that in some older machines (Windows XP) with IE8, the server request is not being sent until a period of time. The theory is that the browser is waiting for all the components to be drawn before it sends the fetch request. As a result, we see "No Items to load" for a few seconds before the data is loaded. The proposed fix was the delay the showing of the listgrid until after we've called fetch.
My current issue is that our product pre-renders the create script of a single page...meaning we have something like:
We also have other logic to call show() on the element that has been returned from that function. Naturally, calling show() on a layout which contains a listgrid as a parent will also show the listgrid.
So my first question, is there any way to defer the showing of the listgrid based on our logic? Something like when layout.show() is called, to let it know not to call show() on the listgrid? Or do I need to keep track of all layouts with a listgrid as a child and suppress the call to the layout's show() until after fetch is called?
My current issue is that our product pre-renders the create script of a single page...meaning we have something like:
Code:
function(bm){return isc.VStack.create({ID:bm.getId("LoginGrid_vCentering"),name:"LoginGrid_vCentering",vPolicy:"fill",hPolicy:"fill",$cwname:"LoginGrid_vCentering",title:" ",showResizeBar:false,height:"100%",width:"100%",align:"center",defaultLayoutAlign:"center",members: [isc.DynamicForm.create({width:240,ID:bm.getId("LoginGrid"),name:"LoginGrid",title:" ",numCols:2,titleSuffix:" ",rightTitlePrefix:" ",requiredTitleSuffix:"*<\/B>",requiredRightTitleSuffix:"*<\/B>",requiredRightTitlePrefix:"<B> ",colWidths:["90","150"],titleOrientation:"left",cellPadding:2,fields: [{title:" ",width:600,height:300,src:"\/cwf\/r\/cwf\/Login.gif?v=1321459648547en-xx",align:"center"
So my first question, is there any way to defer the showing of the listgrid based on our logic? Something like when layout.show() is called, to let it know not to call show() on the listgrid? Or do I need to keep track of all layouts with a listgrid as a child and suppress the call to the layout's show() until after fetch is called?
Comment