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

Virtual Scrolling Not working as expected

1 Answer 68 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Platinum
Top achievements
Rank 1
Platinum asked on 19 Nov 2014, 05:41 AM
Hi,

I am using Telerik Asp.Net for Ajax version 2014.3.1024.40.

I have enabled virtual scrolling the drop down list as below. I am able to see only the Afghanistan, all the others are shown as blank value. However i disable the virtual scrolling, i am able to see all the entries. Please let me know whats the issue and how to fix it ?

<telerik:RadDropDownList ID="rdlCountry" DefaultMessage="---" EnableVirtualScrolling="true"  runat="server"  >
                                                            <Items>
                                                                <telerik:DropDownListItem Text="Afghanistan" />
                                                                <telerik:DropDownListItem Text="Albania"  />
                                                                <telerik:DropDownListItem Text="Algeria" />
                                                                <telerik:DropDownListItem Text="Andorra" />
                                                                <telerik:DropDownListItem Text="Angola" />
                                                                <telerik:DropDownListItem Text="Antigua & Deps" />
                                                                <telerik:DropDownListItem Text="Argentina" />                                                             
                                                            </Items>
                                                        </telerik:RadDropDownList>

1 Answer, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 21 Nov 2014, 03:14 PM
Hello,

In order to achieve the proper behavior of the control, when the VirtualScrolling is enabled you need to set the DropDownHeigth of the RadDropDownList, so that the control could correctly calculate the portion of items to load. This is described in our help article below:

http://www.telerik.com/help/aspnet-ajax/dropdownlist-functionality-virtualscrolling.html

Regards,
Nencho
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
DropDownList
Asked by
Platinum
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Share this question
or