Is it possible to get Virtual Scrolling going using ObjectDataSource? I haven't been able to find any good examples except for those on the demo-site (http://demos.telerik.com/aspnet-ajax/dropdownlist/examples/functionality/virtualscrolling/defaultcs.aspx). Unfortunately, the DropDownList doesn't seem to provide the ObjectDataSource with values for "StartIndex" and "ItemsCount" as per the WebService-datasource example.
Below is a simple example, describing the desired scenario. The Facade is in place and works well with other types of solutions, e.g. paging a Grid using an ObjectDataSource.
Any help would be greatly appreciated!
Below is a simple example, describing the desired scenario. The Facade is in place and works well with other types of solutions, e.g. paging a Grid using an ObjectDataSource.
<
asp:ObjectDataSource
ID
=
"ODSNotifications"
runat
=
"server"
TypeName
=
"NotificationsFacade"
SelectMethod
=
"Get"
OnSelecting
=
"ODSNotifications_Selecting"
EnablePaging
=
"true"
SelectCountMethod
=
"GetCount"
StartRowIndexParameterName
=
"StartIndex"
MaximumRowsParameterName
=
"ItemsCount"
>
<
SelectParameters
>
<
asp:Parameter
Name
=
"userId"
Type
=
"Int32"
/>
<
asp:Parameter
Name
=
"fromDate"
Type
=
"DateTime"
/>
</
SelectParameters
>
</
asp:ObjectDataSource
>
<
telerik:RadDropDownList
ID
=
"RDDLNotifications"
runat
=
"server"
DataSourceID
=
"ODSNotifications"
CssClass
=
"RDDLNotifications"
DataValueField
=
"Title"
DataTextField
=
"Id"
OnItemDataBound
=
"RDDLNotifications_ItemDataBound"
DropDownWidth
=
"200px"
DropDownHeight
=
"100px"
EnableVirtualScrolling
=
"true"
>
<
ItemTemplate
>
<
asp:Panel
ID
=
"PNotification"
runat
=
"server"
CssClass
=
"w_n_outer"
onclick
=
"StopPropagation(event);"
>
<
div
class
=
"w_n_inner"
>
<
asp:Label
ID
=
"LType"
runat
=
"server"
Font-Size
=
"0.8em"
/>
<
br
/>
<
asp:Label
ID
=
"LTitle"
runat
=
"server"
Font-Bold
=
"true"
/>
<
br
/>
<
asp:Label
ID
=
"LBody"
runat
=
"server"
/>
</
div
>
</
asp:Panel
>
</
ItemTemplate
>
</
telerik:RadDropDownList
>
Any help would be greatly appreciated!