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

toolbar with Template button in Grid CommandItemTemplate

3 Answers 35 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Albert Shenker asked on 26 Mar 2013, 02:36 PM
I have a toolbar in a grid CommandItemTemplate. The toolbar contains a TemplateButton and the template holds a label, a combobox and a button. It appears that clicking anywhere within the template button causes the grid ItemCommand event to fire. For instance, clicking on the lable fires the GridCommand event. The CommandName is empty when these events are fired so it doesn't cause any obvious problems, but I am wondering if there is a way to prevent this behavior. I only want the ItemCOmmand event to be fired when the user clicks on the button in the template... not when they make a selection in the combo box or click anywhere in the Button Template.

3 Answers, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 29 Mar 2013, 09:19 AM
Hello Albert,

Thank you for contacting us.

I try to replicate the issue on my side but to no avail. I prepared a small sample and attached it to this thread. Could you please give it a try and let me know how it differs from your real setup?

I am looking forward to your reply.

Regards,
Kostadin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
answered on 30 Mar 2013, 11:57 AM
I am wondering, then, if I have something going on client-sdie. If I am able to replicate it in a stand-alone project, I will submit it here or in a ticket. Thanks.
0
Kostadin
Telerik team
answered on 03 Apr 2013, 03:33 PM
Hi Albert,

It would be best if you could submit a support ticket and include the project in it.

All the best,
Kostadin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Answers by
Kostadin
Telerik team
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Share this question
or