Troubleshooting
Problem
When you develop a coach, it contains some tables and text fields. You expect to keep the focus on some text field when the Coach page is loading. However, some times this focus is not retained.
Cause
Because a portion of the layout logic for the table runs asynchronously, the window.onload() method is called before the layout for the table is done.
Resolving The Problem
You have to add the following code to the CustomHTML control instead of assigning focus immediately when the window.onload() method is called. Assign focus when the table is done rendering.
window.onload = function() {
var enhancedGrid = dijit.byId("dojox_grid_EnhancedGrid_0");
var handle = dojo.connect(enhancedGrid, "postrender", function() {
dijit.byId(getDojoId("Text3")).focus();
dojo.disconnect(handle);
});
}
Product Synonym
BPM
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21634989