Hi,
One drawback of using group header text to identify the item is that the group header text does not ensure uniqueness. Hypothetically, there might be two or more group header items with the same text, for example, when you modify the text yourself.
Attached is a sample page demonstrating another approach for expanding group headers on double click. We now use GridGroupHeaderItem's
UniqueID property to uniquely identify the group header:
On the client,
we pass RadGrid's UniqueID
to
__doPostBack(), so we have:
In Page_Load event of the page, we check the __EVENTTARGET and __EVENTARGUMENT request parameters, and record the unique ID of the group header to toggle:
Finally, RadGrid's PreRender event is used to check if we have a group header to toggle, loop over the group headers and toggle the one with the matching unique ID:
Kind regards,
Veli
the Telerik team
Check out
Telerik Trainer, the state of the art learning tool for Telerik products.