This is a migrated thread and some comments may be shown as answers.

List box Load On Demand

2 Answers 131 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Anant
Top achievements
Rank 1
Anant asked on 02 Nov 2011, 03:50 AM
Hi,
    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

Thanks.

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 02 Nov 2011, 09:08 AM
Hello Anant,

Please make sure that you have set the required fields. Here is the sample code which worked as expected.
aspx:
<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>  
<telerik:RadListBox runat="server" ID="RadListBox2">
</telerik:RadListBox>
<asp:SqlDataSource runat="server" ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
            SelectCommand="SELECT [ProductID], [ProductName] FROM [Alphabetical list of products]">
</asp:SqlDataSource>

Thanks,
Princy.
0
Dimitar Terziev
Telerik team
answered on 04 Nov 2011, 04:26 PM
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
Tags
ListBox
Asked by
Anant
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Dimitar Terziev
Telerik team
Share this question
or