Hi,
I have a WebDataGrid 10.2 with paging enabled and I want to display something like that: "Row 10 to 20 of 500 rows".
I tried to do it in code behind but I do not get a postback on PageIndexChanged. Additionally I don't know where to get the total row count. In the moment I get this info from data source but I want to display the "filtered" row count. That means if someone applies a filter I want to display the rows which are not filtered out.
Any ideas?
Let me know if you have any questions wiht this matter.
Thanks.
Hallo Radoslav Minchev,
sorry for late reply. Your solutions works good with one exception: If I add the paging behavior again, the settings for paging are gone. Even if I copy the settings again, paging uses default settings.
protected void storesView_DataFiltered(object sender, FilteredEventArgs e) { FilteredRowsCount = storesView.Rows.Count; storesView.GridResponse.AdditionalProperties["filteredRowCount"] = FilteredRowsCount; storesView.GridResponse.AdditionalProperties["totalRowCount"] = TotalRowsCount; storesView.Behaviors.CreateBehavior<Paging>(); storesView.Behaviors.Paging.PageSize = _oldPagingBehavior.PageSize; storesView.Behaviors.Paging.FirstPageText = _oldPagingBehavior.FirstPageText; storesView.Behaviors.Paging.LastPageText = _oldPagingBehavior.LastPageText; storesView.Behaviors.Paging.QuickPages = _oldPagingBehavior.QuickPages; storesView.Behaviors.Paging.PagerMode = _oldPagingBehavior.PagerMode; }