Remove an item from a listbox client side asynchronously

2 posts, 0 answers
  1. Deivison Julio
    Deivison Julio avatar
    3 posts
    Member since:
    Feb 2012

    Posted 20 Apr 2012 Link to this post

    How to remove an item from a listbox client side asynchronously? I'm using RadAjaxManager, but I have to click the button 2 times to remove the item. 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="True">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RemoveFeed">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="ListBoxFeeds" LoadingPanelID="ajaxLoading" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManage>

    <telerik:RadListBox AppendDataBoundItems="true" runat="server" ID="ListBoxFeeds"
                    CssClass="boxComments" AutoPostBack="True" RegisterWithScriptManager="True" AllowReorder="False"
                    AllowTransfer="False" EnableDragAndDrop="False"
                    AllowAutomaticUpdates="True">
           <ItemTemplate>
                                <asp:Button ID="RemoveFeed" OnClick="removeFeed_Click" CssClass="removeItem" runat="server"
                                    Text="Test"/>
           </ItemTemplate>
                </telerik:RadListBox>
  2. Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 25 Apr 2012 Link to this post

    Hi,

    To resolve the issue set the AutoPostBack property of RadListbox to false.
     
    All the best,
    Bozhidar
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top