Form loads and scrolls down to the lowest rich text control
kbt167628
PRODUCTK2 Cloud
K2 Five
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
Issue
When loading a form, the focus is set to the lowest rich text control on the form. This occurs due to a know issue with the RadEditor from Telerik that is used in the rich text control. The focus has to be brought to these controls for their content handlers to be registered properly. According to Telerik, this cannot be avoided so a workaround must be used to avoid this behavior.Symptoms
This happens when at least one rich text control is present on a form. The form loads and focuses on the last rich text control that the form contains.Resolution
Please use the following as a workaround:
1. Edit the form that is exhibiting this behavior
2. Edit the initialization rule for the form
3. Add one of the following actions to the end of the rule depending on how your views and forms are configured:
- Execute a control's method
- Execute a view control method
- Execute a subview control's method
- Execute a view control's method that was opened in a subform
- Execute a form control's method that was opened in a subform
4. Select the Focus method.