Just The Code: Two Telerik RadGrid Extension Methods
Last night I found myself needing to add the same functionality to several RadGrids in my application. Rather than copy & paste, I decided to be kind to my future self and thus created two extension methods:
SetDefaultSort -- This method sets a default sort on a RadGrid - for instance, to sort by a datetime column when the page loads.
ClearFilters -- For a RadGrid that has filters implemented, this method allows you to consistently clear filters - for instance, when a user clicks a "Refresh" or "Clear Filters" button.