Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

ASPxGridView in Endless Paging Mode with the Total summary item - How to avoid refreshing the whole ASPxGridView control after editing

$
0
0

In this example, the following scenario is illustrated:
1) ASPxGridView operates in Endless paging mode.
2) ASPxGridView contains the total summary item.
3) An ASPxGridView row is updated/deleted/inserted on the N page (for example, the AllowFocusedRow property is set to true and the edit row is focused).
4) After updating, ASPxGridView needs to update the total summary item and get completely refreshed.
5) Due to refreshing ASPxGridView in Endless mode, the control loses all uploaded pages and the edit row loses focus (the current page is reset to the first page and focus is set to the first row).
This example demonstrates how to avoid this scenario. Set the Visible property of the total summary item to false - in this case, ASPxGridView isn't refreshed after the update/delete/insert operation. Then, create a footer template, and use the GetTotalSummaryValue and GetTotalFooterDisplayText methods to fill the template with a required value. 


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>