Virtual Scrolling Duplicates Data loaded on demand

4 posts, 0 answers
  1. Josh Sudbury
    Josh Sudbury avatar
    10 posts
    Member since:
    Apr 2010

    Posted 06 Aug 2010 Link to this post

    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!
  2. Cori
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 06 Aug 2010 Link to this post

    Hello Josh,

    What does you ItemsRequested event look like?
  3. Josh Sudbury
    Josh Sudbury avatar
    10 posts
    Member since:
    Apr 2010

    Posted 06 Aug 2010 Link to this post

    <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.
  4. Yana
    Admin
    Yana avatar
    4815 posts

    Posted 10 Aug 2010 Link to this post

    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
Back to Top