This is a migrated thread and some comments may be shown as answers.

Radgrid grouping event

3 Answers 110 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Henrik Tegman
Top achievements
Rank 1
Henrik Tegman asked on 17 Jun 2010, 10:37 AM
Hi,

I want to do some custom adjustments when a user uses the grouping function in radgrid. Now my real problem is catching the event that should happen when you use the grouping and I can't seem to get it. From reading I thought that the grid would always use a ItemCommand and that you could simply use:

    protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)
    {
        if (e.CommandName == "RowClick")
        {
               // Do something
        }
    }

And simply change the "RowClick" with what ever the name might be of a grouping so I just put a breakpoint there and tested it but I never stopped there. My grid is called RadGrid1 so that shouldn't be a problem, do I need todo something else to make the grid throw out events?

Also any links to where I can read up more would be great, but I've been trying to read on all the helps and API's I can find and they just don't do it, I can't seem to understand or get it right.

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 17 Jun 2010, 11:13 AM
Hello,

You can use the GroupsChanging instead which fires when Telerik RadGrid tries to group its data (e.g. when a column header is dragged to the Group Panel).

-Shinu.
0
Vi Le
Top achievements
Rank 1
answered on 24 Jun 2011, 07:42 PM
I'm using the latest ASP.NET radGrid and I don't see this event, or any other grouping event.  Has the name changed?
0
Iana Tsolova
Telerik team
answered on 29 Jun 2011, 11:10 AM
Hi Vi Le,

Which is the version of your RadGrid?
I suggest that you upgrade to the latest version of RadGrid for ASP.NET AJAX. Note that RadGrid for ASP.NET is not supported anymore and if you have old version of it, it might not have the GroupsChanging event exposed.

Greetings,
Iana
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Henrik Tegman
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Vi Le
Top achievements
Rank 1
Iana Tsolova
Telerik team
Share this question
or