we have our piece of code which worked perfectly for ExpandCollapse command until we upgraded to latest control set:
While debugging everything looks correct apart from the fact that selected DetailTable doesn't expand.
Any thought's ?
switch (e.CommandName) { case RadGrid.ExpandCollapseCommandName: { gridId = (GridDataItem)e.Item; ViewState["mkAccountID"] = gridId.GetDataKeyValue("mkAccountID").ToString(); ViewState["DecimalPlaces"] = gridId.GetDataKeyValue("DecimalPlaces").ToString(); //Set paramaters for dsAccountTID dsAccountTID.SelectParameters.Clear(); dsAccountTID.SelectParameters.Add("mkAccountId", ViewState["mkAccountID"].ToString()); //Set paramaters for dsAccountCardSchemes dsAccountCardSchemes.SelectParameters.Clear(); dsAccountCardSchemes.SelectParameters.Add("mkAccountId", ViewState["mkAccountID"].ToString()); if (SharedUtilities.ExpandCollapseItems(e.Item)) e.Canceled = true; } break;public static bool ExpandCollapseItems(GridItem item) { try { // expand the grid data item that has been clicked // and collapse any other so that we only ever get // one expanded. foreach (GridDataItem gdi in item.OwnerTableView.Items) { if (gdi.ItemIndexHierarchical == item.ItemIndexHierarchical) { gdi.Expanded = !gdi.Expanded; } else { gdi.Expanded = false; } } return true; } catch (Exception ex) { throw new Exception("ExpandCollapseItems: " + ex); } }While debugging everything looks correct apart from the fact that selected DetailTable doesn't expand.
Any thought's ?