We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

problems with click event for ImageButton in GridGroupingControl

Thread ID:





97597 Dec 15,2010 02:33 PM UTC Apr 9,2012 06:36 AM UTC ASP.NET Web Forms (Classic) 3
Tags: GridGroupingControl
Sorin Rojea
Asked On December 15, 2010 02:33 PM UTC

I'm trying to add a template column that has an asp imagebutton to a gridgroupingcontrol.

The problem is that I don't receive the button's click event on the server side all the time.

The only time I receive the click event is if I click on the button right after a page refresh and only on the first row.
If I change the row selected or if I edit a row, the click event is not fired anymore.

Here is my aspx

AutoFormat="Navy Blue" DataSourceCachingMode="ViewState"
AutoSaveChildControlChanges="True" BorderCollapse="Separate"
CssClass="GridNavyBlue" DragSelectionBackColor="Yellow" EnableCallbacks="False" PageSize="8"
GroupDropAreaCssClass="GridNavyBlueGroupDropArea" PostBackOnFocusedChanged="true" OnCurrentRecordContextChange="UserGrid_CurrentRecordContextChange">


AllowSort="False" ReadOnly="True">

CommandName="MROClick" CommandArgument='<%# Container %>'


And this is my event handler

protected void UserGrid_TemplateCommand(object sender, TemplateCommandEventArgs args)
if (args.CommandName == "MROClick")
int userID = int.Parse(args.GridRow.Record.GetValue("UserID").ToString());


Manickam Chidambaram [Syncfusion]
Replied On December 16, 2010 05:14 AM UTC

Hi Sorin,

Thanks for using Syncfusion Products.

We suggest you place the Item Template column “Image button” in
tag, since we are adding more than one submit type image button in the form. Please refer the below code snippet.

[ASPX page]

<%--Adding image button to Grid Column--%>

CommandName="MROClick" CommandArgument='<%# Container %>’ />

. . . . . .

Please refer the following sample link demonstrating image button item template in Grid Grouping control.


Please try the above suggestion and let us know if any concerns.


Replied On April 6, 2012 03:32 PM UTC

I've a similar problem with latest bin (
If I try your example with these bins it doesn't goes.

With your example I'm trying this:
- I click on image and it fires
- I Group rows
- I click another time on image. It doesn't fire

It seems that after some other external events, if GridGroupingControl is inside an UpdatePanel it doesn't fire Template Command events.

Sridhar N [Syncfusion]
Replied On April 9, 2012 06:36 AM UTC

Hi Marco,

Thanks for your update.

We have analyzed the issue and we have updated about this issue in the incident 93052. Could you please follow up in that incident?

Please let us know if any concerns.

Sridhar N


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon