What I want to achieve is very simple. I have a standard grid that may be grouped by one of the columns. This is achieved using standard RadGrid functionality.
When the user clicks on the chevron of a group I want to toggle the group (expand or collapse it).There seem to be several threads on this type of thing. However, having looked at some of them what is not clear to me is what is the correct approach.
Some of the questions that arise are
- Do I have to implement a solution client side? (I would prefer a server side solution.)
- Do I need to implement something in page Page_PreRender().
- Does the grid need to be rebound at any point? If so, where?
If somebody could point me to a simple example of this I would be very thankful. Ideally, the solution would be server side. By the way, I presume that I need to do the following (see below). However, I am not sure "what goes here", if anything?
Thanks in advance,
protected void GridItemCommand(object source, GridCommandEventArgs e)
// what goes here ???