Hi,
I asked before about how to add an image button to the "GroupSplitterColumn" header, and you advised me and send me the way to do that and it was a great help, the solution was as follows :
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
{
if (e.Item is GridHeaderItem)
{
GridHeaderItem header = (GridHeaderItem)e.Item;
ImageButton imgbtn = new ImageButton();
imgbtn.ID = "btnExpndAll";
imgbtn.ImageUrl = "~/Images/Image1.gif";
imgbtn.Click += new ImageClickEventHandler(imgbtn_Click);
header["column"].Controls.Add(imgbtn);
}
}
void imgbtn_Click(object sender, ImageClickEventArgs e)
{
RadGrid1.MasterTableView.GroupsDefaultExpanded = !RadGrid1.MasterTableView.GroupsDefaultExpanded;
RadGrid1.MasterTableView.Rebind();
}
the Uniquename of the "GroupSplitterColumn" as you use above is ["column"], the problem is I am using now a hierarchy Grid and I add the above statement to my "GroupSplitterColumn" but what happened is when another collapse column appear for my DetailTables an exception start to appear to me, The Exception is :-
Sys.WebForms.PageRequestManagerServerErrorException; Cannot find a cell bound to column name 'column'
and when I remove the above statement this error stop appear, so what happened !!! is there any conflict betwen the "GroupSplitterColumn" and the new DetailTables collapse column, or I should use another Uniquename ??
Please help ...
Thanks
Ban