Reset vs. ColumnChange

5 replies. Last post: July 23, 2010 11:54 AM by Handy Surya
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Brad LoveallMember

When we click the "Reset" link on the context menu from a WebGridColumn, the InitializePostBack event is handled but there is seemingly no way to tell the difference between a "Reset" and a scenario where the user manually adds or removes individual columns and hits "Apply Changes." I would like to override the "Reset" so that, instead of resetting based on the changes that the user has made during their visit to the page, we reset their column preferences, which we track in an xml file. So, when the grid is loaded, we configure the column order and visibility based on preferences that they have saved in an xml file. When they hit "Reset," we'd like to eliminate those preferences and load the grid based on the columns that we define in the .aspx file. How could we do this when the Reset link is clicked?

Thanks,

Brad

All times are GMT -5. The time now is 9:57 PM.
Previous Next