insert new row in Grid View using update panel

2 posts, 0 answers
  1. Harin Yadav
    Harin Yadav avatar
    31 posts
    Member since:
    Jan 2011

    Posted 13 Jan 2012 Link to this post

    hi

    Im trying to insert a row at the bottom of Grid view with out postback
    My Grid has one coloum with rad Combo

    placed my Grid view and button in Update panel  and in code behined on button click add a new row to datatable and Binding It to grid view

    in Upadate panel gave trigger attributes

     

    <Triggers>

     

     

    <asp:AsyncPostBackTrigger controlid="btnAddrw" eventname="Click" />

     

     

    </Triggers>

    im getting the below error as attached

    if i remove the above trigger  code  row is getting added but page is getting Postback

    How to fix this?

    thanks, Harin

     



  2. Richard
    Richard avatar
    479 posts
    Member since:
    Nov 2011

    Posted 16 Jan 2012 Link to this post

    Harin:

    Have you tried removing the update panel and ajaxify the controls using the single RadAjaxManager on the page? This would automatically inject a MS UpdatePanel around the updated controls at runtime.

    Regards,
Back to Top