RadAjaxPanel - Exception has been thrown by the target of an invocation

5 posts, 0 answers
  1. sbinet
    sbinet avatar
    7 posts
    Member since:
    Sep 2008

    Posted 29 Dec 2008 Link to this post

    Hi there,

    I am using Q3, asp.net 2.0 and I have run into this error: Exception has been thrown by the target of an invocation.

    I do know what causes it, but I cannot find out how to solve.

    I wrap a detailsview into the RadAjaxPanel and everything works fine. The problem is that I have some textboxes which do not allow the value null. Everything is fine if I type some values in these textboxes, but it throws this error if this textboxes are left null.

     I have set the RequiredFieldValidator for these textboxes, hoping it to show some alert messages to users to type in these boxes but they do not work with RadAjaxPanel. Perhaps I miss something with using validation with RadAjaxPanel?

    Please advice.
    Thanks.
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 29 Dec 2008 Link to this post

    Hello,

    Have you wrapped the Validator controls into the RadAjaxPanel with the corresponding text box? The validators and the validated controls should be updated together if ajax is used.

    Kind regards,
    Maria Ilieva
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. sbinet
    sbinet avatar
    7 posts
    Member since:
    Sep 2008

    Posted 29 Dec 2008 Link to this post

    Hi Maria Ilieva,

    Thanks for your kindly and quick reply.

    For my problem: Yes, I have already wrapped all of them together into the Panel.

  4. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 29 Dec 2008 Link to this post

    Hi,

    Please test the application by using regular asp UpdatePanels instead of RadAjax and let us know if the problem still persists.

    Regards,
    Maria Ilieva
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Don
    Don avatar
    1 posts
    Member since:
    Mar 2012

    Posted 04 Apr 2012 Link to this post

    i just drag the RadAjaxManagerProxy from toolbox to my user control and it shows:

    Exception has been thrown by the target of an invocation.


    i dont have any other manager and it will show this error plz help me
Back to Top