RadListBox not getting items on postback

3 posts, 0 answers
  1. Sagar
    Sagar avatar
    18 posts
    Member since:
    Dec 2011

    Posted 31 Oct 2012 Link to this post

    Hi All,
                 I have the following code:

    <telerik:RadListBox runat="server" ID="RadListBox1" AllowReorder="true" Height="350px"
                AllowTransferOnDoubleClick="true" SelectionMode="Multiple" AllowTransfer="true" 
                TransferToID="RadListBox2" Width="300px" EnableDragAndDrop="true" Sort = "Ascending" PersistClientChanges = "true">
            </telerik:RadListBox>
            <telerik:RadListBox runat="server" ID="RadListBox2" Width="300px" Height="350px" AllowTransferOnDoubleClick = "true"
                SelectionMode = "Multiple" EnableDragAndDrop = "true" Sort = "Ascending" PersistClientChanges = "true">
            </telerik:RadListBox>

    And in the code behind i have :

    For i As Integer = 0 To RadListBox2.Items.Count - 1
    -----------------
    Next

    But the problem is after the postback, the items of radlistbox2 is same as before. All the changes(adding/removing items) are lost. Please help me. Thanks.
  2. Sagar
    Sagar avatar
    18 posts
    Member since:
    Dec 2011

    Posted 01 Nov 2012 Link to this post

    It is fixed. I am loading them in page_load instead of init.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Nencho
    Admin
    Nencho avatar
    1458 posts

    Posted 01 Nov 2012 Link to this post

    Hi Sagar,

    I'm glad that you were able to solve the faced issue yourself.

    Wish you a great day!


    Greetings,
    Nencho
    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