When one clicks on the FormatCodeBlock icon in the RadEditor (Build 2007.2 - 1428), the FormatCodeBlock dialog comes up, but the source textbox does not have focus (one must click in that text box to set its focus).
How does one set the focus on that textbox when that dialog first comes up?
I've tried the following in the following in the "OnClientCommandExecuted" event handler, but no luck yet...
The first time through, it's not found. However, clicking the FormatCodeBlock again, then the control is found, but setFocus has no effect.
How does one set the focus on that textbox when that dialog first comes up?
I've tried the following in the following in the "OnClientCommandExecuted" event handler, but no luck yet...
| var codeFormatter = top.frames[1].document.getElementById('dialogControl_codeFormatter_dirtyCode'); |
| if (codeFormatter) |
| { |
| codeFormatter.setFocus(); |
| } |
The first time through, it's not found. However, clicking the FormatCodeBlock again, then the control is found, but setFocus has no effect.
