This is a migrated thread and some comments may be shown as answers.

insert new row in Grid View using update panel

1 Answer 24 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Harin Yadav
Top achievements
Rank 2
Harin Yadav asked on 13 Jan 2012, 12:22 PM
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

 



1 Answer, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 16 Jan 2012, 10:44 PM
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,
Tags
Ajax
Asked by
Harin Yadav
Top achievements
Rank 2
Answers by
Richard
Top achievements
Rank 1
Share this question
or