I got a bug list this week by user that i working on now as my freelance job. They asked me to put by default all the grid is collapse instead of expand like was previously installed on their server.
The grid component that i used currently is Telerik, because the client have a licence on that and they also want me to use that component as well to implement on their Sharepoint.
I do googling to find how to set that, this is the best solution that i got and the solution it is must be using a code.
Here is below the code :
|protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)|
|foreach (GridGroupHeaderItem groupHeader in RadGrid1.MasterTableView.GetItems(GridItemType.GroupHeader))|
|GridItem children = groupHeader.GetChildItems();|
|foreach (GridItem child in children)|
|child.Expanded = false;|
i got this tip form this url : http://www.telerik.com/forums/collapsed-hierarchy-by-default-when-grouped
And here as below the sample screenshot after i deployed that code :