We have a radgrid that polls the server to get updated data. The client rebind causes the winow to focus - often obscuring any other windows (i.e. popups). Is there a way to prevent this focus from occurring on an AJAX rebind?
3 Answers, 1 is accepted
0
Maria Ilieva
Telerik team
answered on 08 May 2012, 12:16 PM
Hello Christopher,
If I correctly understand your requirements, after you perfume ajax request for rebinding the RadGrid you need to persists the focus on the control which caused this request.
If this is what you are trying to achieve the best approach would be to hookup the RadAjax OnResponseEnd client event and set focus() for the actual ajax initiator. You could get the ajax initiator by using "get_eventTarget() " of the eventArgs. See the following help topic for more information on this matter: http://www.telerik.com/help/aspnet-ajax/ajax-onresponseend.html
All the best,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Hi, I'm having the same problem as you mention here. Did you find a solution for preventing the window to receive focus when rebinding the grid?
Regards
Fredrik Kronander
0
Maria Ilieva
Telerik team
answered on 01 Apr 2013, 08:26 AM
Hello Fredrik,
Have you tested the solution provided in my last post. If yes, does it help in your case? If this is not the solution you need please send us some more information for the exact scenario you are implementing so that we could further assist.
Regards,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.