List box Load On Demand

3 posts, 0 answers
  1. Anant
    Anant avatar
    1 posts
    Member since:
    Oct 2011

    Posted 01 Nov 2011 Link to this post

        I am using list box with load on demand option. The issues i am facing here is

    1. Not able to drag and drop Items(EnableDragAndDrop) between two list box and AllowTransferOnDoubleClick is not working

    2. List box Load On Demand is not working inside RadMultiview and also in Expand Collapse panel, So i placed it in panel, that is working.

    Appreciate quick response on this


  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 02 Nov 2011 Link to this post

    Hello Anant,

    Please make sure that you have set the required fields. Here is the sample code which worked as expected.
    <telerik:RadListBox runat="server" ID="RadListBox1" DataKeyField="ProductID" DataTextField="ProductName"
       DataValueField="ProductID" EnableLoadOnDemand="true"  Height="160px"
        DataSourceID="SqlDataSource1" AllowTransferOnDoubleClick="true" EnableDragAndDrop="true" AllowTransfer="true" ButtonSettings-ShowTransfer="true" TransferToID="RadListBox2">
    <telerik:RadListBox runat="server" ID="RadListBox2">
    <asp:SqlDataSource runat="server" ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
                SelectCommand="SELECT [ProductID], [ProductName] FROM [Alphabetical list of products]">

  3. DevCraft R3 2016 release webinar banner
  4. Dimitar Terziev
    Dimitar Terziev avatar
    1266 posts

    Posted 04 Nov 2011 Link to this post

    Hi Anant,,

    I've performed a couple of tests and indeed there is a problem with the load on demand of the RadListBox when it's placed in a container which is initialy not visible. A possible workaround for this is to call the "_initLoadOnDemand()" method once the container is made visible.

    I've prepared a sample page demonstrating the suggested workaround.

    As a token of gratitude for pointing this problem your Telerik points are updated.

    All the best,
    Dimitar Terziev
    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