Hi Kevin thanks four your tip,
i've tried setting EnableVirtualScrolling="true", but behaviour is the same, load data but showed position is first again each time next items are loaded.
Perhaps the problem is loading data, this is the code to load data:
Protected
Sub
ddl_combo_ItemsRequested(
ByVal
sender
As
Object
,
ByVal
e
As
Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs)
Handles
ddl_combo.ItemsRequested
Dim
mensaje
As
String
=
String
.Empty
Cargar_ddlActivosOnDemand(e.NumberOfItems, 10, conexion, mensaje, ddl_combo, e.Text)
e.Message = mensaje
End
Sub
Function
Cargar_ddlActivosOnDemand(
ByVal
ItemOffset
As
Integer
, _
ByVal
ItemsPerRequest
As
Integer
, _
ByVal
Cnx
As
OleDbConnection, _
ByRef
Mensaje
As
String
, _
ByVal
ctrl_dropdown
As
Telerik.Web.UI.RadComboBox, _
Optional
ByVal
TextoFiltro
As
String
=
""
)
As
Boolean
Dim
strsql
As
String
Dim
data
As
System.Data.DataTable
strsql =
"SELECT * FROM TABLA WHERE (DESCFIELD LIKE '%"
& TextoFiltro.Trim.Replace(
"'"
,
"''"
) &
"%')"
data = Ejecutar_Consulta_DataSet(Cnx, strsql).Tables(0)'Return Table
Dim
endOffset
As
Integer
= Math.Min(ItemOffset + ItemsPerRequest, data.Rows.Count)
For
i
As
Integer
= ItemOffset
To
endOffset - 1
Dim
ItemCombo
As
New
Telerik.Web.UI.RadComboBoxItem()
With
ItemCombo
.Value = data.Rows(i)(
"CODFIELD"
).ToString()
.Text = data.Rows(i)(
"DESCFIELD"
).ToString() &
"("
& data.Rows(i)(
"CODFIELD"
).ToString() &
")"
ctrl_dropdown.Items.Add(ItemCombo)
End
With
Next
i
Mensaje = endOffset &
" - "
& data.Rows.Count
Return
True
End
Function
Thanks to everybody
JPrian