Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
public
Hashtable Groups
{
get
if
(ViewState[
"Groups"
] ==
null
)
Hashtable res =
new
Hashtable();
ViewState[
] = res;
return
res;
}
(Hashtable)ViewState[
];
set
] = value;
void
RadGrid1_DataBound(
object
sender, EventArgs e)
foreach
(GridGroupHeaderItem item
in
RadGrid1.MasterTableView.GetItems(GridItemType.GroupHeader))
(Groups.ContainsKey(item.DataCell.Text))
item.Expanded = (
bool
)Groups[item.DataCell.Text];
protected
RadGrid1_ItemCommand(
source, GridCommandEventArgs e)
(e.CommandName == RadGrid.ExpandCollapseCommandName)
Groups[((GridGroupHeaderItem)e.Item).DataCell.Text] = !e.Item.Expanded;
RadGrid1_GroupsChanging(
sender, GridGroupsChangingEventArgs e)
Groups.Clear();
Groups[item.DataCell.Text] = item.Expanded;
Update_Click(
RadGrid1.Rebind();