How to click on group header bar to collapse expand?
Just to make more user friendly, let the user click on group header bar to collapse expand the list rather than click on the small button.
Is possible?
Please refer the picture from attachment.
2 Answers, 1 is accepted
0
Accepted
Ivan Petrov
Telerik team
answered on 30 May 2012, 12:22 PM
Hello Stanley,
Thank you for writing.
You can achieve this behavior through the CellClick event. You have to check whether the user has clicked on a group row and collapse/expand the row. Here is a code snippet which demonstrates this:
this.radGridView1.CellClick += new GridViewCellEventHandler(radGridView1_CellClick);
The small icon cannot work properly, need to add in one more condition sender.GetType().ToString() == "Telerik.WinControls.UI.GridGroupContentCellElement")