Hi,
I follow the example in https://www.devexpress.com/Support/Center/Example/Details/E4538, but i found a problem in the sample code.
C#protected void ASPxDataView1_CustomCallback(object sender, DevExpress.Web.ASPxClasses.CallbackEventArgsBase e) {
List<DataRowView> selectResult = Products.Select(DataSourceSelectArguments.Empty).Cast<DataRowView>().ToList();
for(int i = 0; i < selectResult.Count; i++) {
if(IsSuitableItem(selectResult[i])) {
ASPxDataView1.PageIndex = i / ASPxDataView1.PageCount;
return;
}
}
}
It is using PageCount to the calculation, but i think it is wrong, it should use page size instead, but i can't find how to get page size, can you help me on this?