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

Link button inside grid not triggering ajax postback

1 Answer 119 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
andieje
Top achievements
Rank 1
andieje asked on 28 Sep 2009, 06:53 PM
Hi

I have a grid which contains a link button inside a template column

 <telerik:GridTemplateColumn HeaderText="Location">  
    <ItemTemplate> 
      <asp:LinkButton runat="server" ID="lnkAddress"></asp:LinkButton> 
    </ItemTemplate> 
    <ItemStyle Width="300px" /> 
    </telerik:GridTemplateColumn> 

The link button is given a command argument in the item data bound event

I have tried to set up the grid so that is triggers an ajax postback when the link button is clicked. However clicking the link button triggers a full postback. What am i doing wrong?

   <telerik:AjaxSetting AjaxControlID="gridPolls">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="lblMapStatus" /> 
                    <telerik:AjaxUpdatedControl ControlID="Map1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 


1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 29 Sep 2009, 08:49 AM
Hi Andrea,

Please add in "RadAjaxManager.AjaxSettings" RadGrid control as request initiator and RadGrid as updated control. Give this suggestion a try and let me know if it helps.
More information about how to use RadAjaxManager control is available here:
http://www.telerik.com/help/aspnet-ajax/ajxajaxmanager.html

Regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Ajax
Asked by
andieje
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or