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">
            <telerik:AjaxSetting AjaxControlID="RemoveFeed">
                    <telerik:AjaxUpdatedControl ControlID="ListBoxFeeds" LoadingPanelID="ajaxLoading" />

    <telerik:RadListBox AppendDataBoundItems="true" runat="server" ID="ListBoxFeeds"
                    CssClass="boxComments" AutoPostBack="True" RegisterWithScriptManager="True" AllowReorder="False"
                    AllowTransfer="False" EnableDragAndDrop="False"
                                <asp:Button ID="RemoveFeed" OnClick="removeFeed_Click" CssClass="removeItem" runat="server"
  2. Bozhidar
    Bozhidar avatar
    1146 posts

    Posted 25 Apr 2012 Link to this post


    To resolve the issue set the AutoPostBack property of RadListbox to false.
    All the best,
    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.
Back to Top