This is a migrated thread and some comments may be shown as answers.

Error: Can't move focus to the control because it is invisible, not enabled, or of type that does not accept the focus.

1 Answer 146 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Elfman
Top achievements
Rank 1
Elfman asked on 30 Jul 2008, 06:46 PM
I have a grid with a custom date filter instance.  The custom filter replaces the filter textbox with a RadCombo.  Inside the RadCombo are (2) RadCalanders and an OK button.

When I add an RadAjax manager to the page and set the instance of the grid to handle itself, I start getting: "Error: Can't move focus to the control because it is invisible, not enabled, or of type that does not accept the focus.", whenever I either page to another page or I apply a filter.  This basically occurs after any postback, when I click the cutom date filter control/dropdown.

Also, note that after a postback the grid flashes then the drawing is messed up. The filter row and pager rows are missing controls and everything over all looks bad...

An additional note, is that the design view of the page shows an error in the grid control: "Sytem.NullReferenceException: Object reference not set to an instance of an object. at Web.Compilation.BuildManager.GetCacheKeyFromVirtualPath(..."

Thanks

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 01 Aug 2008, 03:09 PM
Hi,

I'm afraid that with the given details, I'm not sure what may be causing the described behavior. Are you trying to set manually focus to any control on the page? This error usually occurs when focus is called for a nonvisible html element.

It will be highly appreciated if you can send us (attached to a formal support ticket) a small working project in which this behavior can be reproduced. Thus we will be able to gather more details about your scenario and get back to you with resolution.

Best wishes,
Rosen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
Elfman
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or