Until release 2008 Q2 , the function <control>.Focus() works well.
With release 2008 Q3, the function <control>.Focus doesn't work, when in page exists RadFormDecorator !!!
I tried removing RadFormDecorator, the Focus works fine.
Add RadFormDecorator, the Focus doesn't work !!!
1 Answer, 1 is accepted
answered on 28 Nov 2008, 10:58 AM
I am not aware of any change that we have introduced to change the behavior of RadFormDecorator with that respect. However, setting a control focus using its .Focus method is different for ASP.NET controls and for Telerik controls. You have not specified which type of control you are trying to set focus to, so I am not able to provide more detailed suggestions here.
As a result, focus is set, then MS AJAX controls are intialized - that is, when RadFormDecorator is initialized as well. The decoration process, performed by the decorator, involves changes to the DOM and moving of elements. This causes the focus set to be lost.
The only possible workaround is to execute setting of focus with a slight delay to provide the chance for the form decorator to perform its job. Here is how to do it: