When i enable AllowFilterByColumn in RadGrid and custom paging with NeedDataSource. I have a problem which is filter is ok but paging of RadGrid is show wrong. If i dont use AllowFilterByColumn Paging is ok. But when i use AllowFilterByColumn Paging will show wrong Please help me. Thanks. This is my code :
protected
void
RgProductNeedDataSource(
object
sender, GridNeedDataSourceEventArgs e)
{
int
startRowIndex = rgProduct.CurrentPageIndex * rgProduct.PageSize;
int
totalRows;
int
maximumRows = rgProduct.PageSize;
var pageIndex = startRowIndex / maximumRows;
rgProduct.DataSource = _datacontext.Products.Page(pageIndex, maximumRows, p => p.ProductCode,
true
,
out
totalRows);
}