Rebind: what am I doing wrong?

3 posts, 0 answers
  1. Jorge
    Jorge avatar
    53 posts
    Member since:
    Jun 2009

    Posted 24 May 2010 Link to this post

    I have a listview. Inside every item I have a RadToolbar that, when clicked, shows a hidden panel inside the item.
    When clicking a button in that hidden panel, and after modifying some data in the database, I need to fire a rebind, but when i execute listview1.Rebind() (in server-side) I get "Exception has been thrown by the target of an invocation".

    Any ideas?
    Thanks a lot!


  2. BaiH
    BaiH avatar
    83 posts
    Member since:
    Aug 2008

    Posted 27 May 2010 Link to this post

    Maybe you can share the page's code with us? Don't forget to use format code block button.

    And what's the exact exception you are getting (disabling the ajax will help to see a more detailed message)?

    --BH
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jorge
    Jorge avatar
    53 posts
    Member since:
    Jun 2009

    Posted 28 May 2010 Link to this post

    When I call Rebind() the application waits 10 seconds (aprox) and they I get a "Target thrown exception".
    I fixed it with client javascript script, sending

    radAjaxManager.ResponseScripts.Add("lbRegistrosRebind()"); 


    where lbRegistrosRebind is
     
     function lbRegistrosRebind() { 
                var listView = $find("<%= lvRegistros.ClientID %>"); 
                listView.rebind(); 
            } 

Back to Top