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

How to access UserControl element on ItemCommand event

1 Answer 93 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Flyznex
Top achievements
Rank 1
Flyznex asked on 28 Jul 2016, 09:27 AM

I want to access UserControl element ex: textbox, checkbox, combobox...etc on ItemCommand event. I found some topic say can't do it. But, I hope someone can solve this. Thank all!

P/s: I have 4 button with custom command in usercontrol edit form. ItemCommand can do command, but can't access UserControl to retrieve value from control in it.

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 02 Aug 2016, 07:09 AM
Hi,

You will need a bit specific syntax to get the UserControl instance. Please check the approach provided in the following section:
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/rows/accessing-cells-and-rows#accessing-controls-in-editinsert-mode

I hope this will prove helpful.

Regards,
Eyup
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Grid
Asked by
Flyznex
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or