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

Virtual Scrolling Duplicates Data loaded on demand

3 Answers 79 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Josh Sudbury
Top achievements
Rank 1
Josh Sudbury asked on 06 Aug 2010, 03:29 PM
Hello,

I have a radcombobox that is loading data using a webservice, and the data all appears the way it should. However with virtual scrolling enabled when I scroll the data in the list is duplicated repeatedly, ad infinitum.

Disabling virtual scrolling solves this issue but that seems like the wrong solution in our particular case.

Any input would be greatly appreciated.

Thanks!

3 Answers, 1 is accepted

Sort by
0
Cori
Top achievements
Rank 2
answered on 06 Aug 2010, 05:11 PM
Hello Josh,

What does you ItemsRequested event look like?
0
Josh Sudbury
Top achievements
Rank 1
answered on 06 Aug 2010, 06:00 PM
<script type="text/javascript">
    function OnClientItemsRequesting(sender, eventArgs) {
        var context = eventArgs.get_context();
        context["GroupId"] = $('#<%= groupId.ClientID %>').attr('groupId');
    }
</script>
 
 
<telerik:RadComboBox ID="ddlOwnerList" runat="server" Width="250px" Height="150px"
 EmptyMessage="Enter First Name or Last Name or Email" EnableLoadOnDemand="true"
 ShowMoreResultsBox="true" EnableVirtualScrolling="true" AppendDataBoundItems="false"   OnClientItemsRequesting="OnClientItemsRequesting">
<WebServiceSettings Method="GetPossibleGroupOwners" Path="../../Services/ProcessService.asmx" />
</telerik:RadComboBox>

Perhaps this will shed some more light. Sorry I should have posted it initially.

I added the AppendDataBoundItems="False" hoping that it would resolve the issue but it did not.

When scrolling in the drop down the data items are appended and repeated over and over again.
0
Yana
Telerik team
answered on 10 Aug 2010, 06:56 AM
Hello Josh,

We had similar issue before, but it's fixed in the latest release. Which version of the controls you're using?

Best regards,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ComboBox
Asked by
Josh Sudbury
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
Josh Sudbury
Top achievements
Rank 1
Yana
Telerik team
Share this question
or