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

Radgrid > edit template > user control > textbox... how?

1 Answer 49 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 08 Jun 2016, 03:51 PM

Suppose I have a radgrid that displays records from a database table. The radgrid has an edit template, for editing these records. Inside the edit template is a user control. The user control has a textbox.

The question: How can I examine the contents of the textbox in the user control from the main page, client side? By main page, I mean the page that contains the radgrid. Is this even possible?

I've not been able to figure it out so far.

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 13 Jun 2016, 08:13 AM
Hello Paul,

You can use $telerik.findControl() if you are using RadTextBox or $telerik.findElement() if you are using asp:TextBox:
http://www.telerik.com/forums/client-side-help-required#vBzJZGDiMkGnpEnfoy2ShA

You can also check the RadGridEditComboClientHideModified.zip web site sample provided in the following post for a practical implementation:
http://www.telerik.com/forums/find-control-in-insert-item-grid-client-side#2tgx6AugyU6c562P--mIIg

I hope this will prove helpful.

Regards,
Eyup
Telerik
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
Paul
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or