rebind detailtable client-side

2 posts, 0 answers
  1. szumm
    szumm avatar
    13 posts
    Member since:
    May 2010

    Posted 07 Oct 2010 Link to this post

    Hi,

    how can I rebind my detailtable on client-side? I initially bind it though the OnDetailTableDataBind event. After adding/editing/deleting a row in the detailtable i would like to show the updated data. I tried to call the rebind function for the mastertableview but it didn't worked. Also i tried to play around with the get_detailTables() function but i' not sure how to iterate through the collection and call the rebind function. Can you point me a solution of this problem?

    TIA,

    Rafal

  2. szumm
    szumm avatar
    13 posts
    Member since:
    May 2010

    Posted 07 Oct 2010 Link to this post

    Ok, I'll answer myself :) actually it's quite easy:

    1.var detailTables = $find("<%= Grid1.ClientID %>").get_detailTables();
    2.for(var i = 0; i < detailTables.length; i++) {
    3.    detailTables[i].rebind();
    4.}
    I don't know why it didn't worked before :)

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top