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

2 posts, 0 answers
  1. Elfman
    Elfman avatar
    12 posts
    Member since:
    Feb 2007

    Posted 30 Jul 2008 Link to this post

    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
  2. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 01 Aug 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top