It must be very simple but I can't work it out
I've got a grid
(myliteral is filled on temDataBound event.)
I bind the grid on code behind needdatasource event. It works fine.
If I click the GridButton to delete, raising RadGrid1_DeleteCommand event, it performs the delete function. It works fine
Now I just need to add Ajax to this.
so
It is not working. The RadGrid1_DeleteCommand event is performed, but it does not refresh the grid
Could you help me please?
I've got a grid
<telerik:RadGrid ID="RadGrid1" runat="server" ShowHeader="False" AutoGenerateColumns="False" > <MasterTableView DataKeyNames="AppID, IDCart, IDOrder"> <Columns> .............. <telerik:GridTemplateColumn UniqueName="TemplateColumn" > <HeaderStyle Width="335px" /> <ItemTemplate> <asp:Literal ID="myLiteral" runat="server" /> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridButtonColumn ConfirmText="Delete this product?" ConfirmDialogType="RadWindow" ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn"> <HeaderStyle Width="15px" /> <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" /> </telerik:GridButtonColumn> </Columns> </MasterTableView> </telerik:RadGrid>(myliteral is filled on temDataBound event.)
I bind the grid on code behind needdatasource event. It works fine.
If I click the GridButton to delete, raising RadGrid1_DeleteCommand event, it performs the delete function. It works fine
Now I just need to add Ajax to this.
so
<telerik:RadAjaxManager ID="RadAjaxManagerCart" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadGrid1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> <telerik:AjaxUpdatedControl ControlID="myLiteral" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager>It is not working. The RadGrid1_DeleteCommand event is performed, but it does not refresh the grid
Could you help me please?
