UpdatePanel inside ItemTemplate?

Last post 10-03-2006 8:21 AM by knutD. 4 replies.

Sort Posts:

  • Hmm [^o)] UpdatePanel inside ItemTemplate?

    09-28-2006, 7:03 PM
    • Loading...
    • Greif
    • Joined on 09-28-2006, 10:58 PM
    • Posts 8

    I am fairly new to Atals. I have not gotten my hands dirty yet... Smile

    I am wondering if I am able to place an UpdatePanel inside an ItemTemplate column within a DataGrid?

    So the page would look something like this:

    DataGrid
    -> [row 1] UpdatePanel1
    -> [row 2] UpdatePanel2
    -> [row 3] UpdatePanel3
    etc

    Is there a better way I should be doing this? Perhaps use a Repeater?? 

  • Re: UpdatePanel inside ItemTemplate?

    09-29-2006, 3:33 AM
    • Loading...
    • Rapkyn
    • Joined on 09-13-2006, 8:38 PM
    • Posts 1

    Why would you want an UpdatePanel on each row? Instead wrap one UpdatePanel around the entire DataGrid.

    Hope this helps...
     

  • Re: UpdatePanel inside ItemTemplate?

    09-29-2006, 4:26 AM
    Answer
    • Loading...
    • Garbin
    • Joined on 09-17-2004, 12:35 PM
    • Sassari, Italy
    • Posts 1,494
    • ASPInsiders
      TrustedFriends-MVPs

    Hi,

    yes you can if you use the July CTP, since it supports dynamic UpdatePanels. 

    Alessandro Gallo | Blog | My book: ASP.NET AJAX In Action
  • Re: UpdatePanel inside ItemTemplate?

    10-02-2006, 8:05 PM
    • Loading...
    • Greif
    • Joined on 09-28-2006, 10:58 PM
    • Posts 8

    i'm talking about a significant grid which holds quite amount of dynamic data. I would rather update a single row than the entire datagrid.

    Thanks for the reply. 

  • Re: UpdatePanel inside ItemTemplate?

    10-03-2006, 8:21 AM
    Answer
    • Loading...
    • knutD
    • Joined on 09-12-2006, 7:52 AM
    • Posts 7

    Thats just whats going to happen .  
    The asyncron ajax postback will only call and collect what data is updated , even if you have all your datarows within a single updatepanel.
    In other words , it will not update the entire updatepanel if only a single row is changed.

     

Page 1 of 1 (5 items)
Microsoft Communities
Page view counter