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

User control in Radgrid

1 Answer 33 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Fatima
Top achievements
Rank 1
Fatima asked on 09 Oct 2012, 11:41 AM
Hi

I have a user control (that contains RadcomboBox, RadMenu, ...) and is handled by client-side and server-side code.

It works correctly.

But I need to use it in a RadGrid. I have some problems with it:

1- finding controls in "user control" code (such as $find in javascript), doesn't work.
    because it can find just direct controls not controls inside a RadGrid.

2- I need to bind a data source to it, when user click on "update" button of RadGrid.
    if it was a RadComboBox, it was possible in "Init evevnt" of it, but for my user control what should I do?

Thanks

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 11 Oct 2012, 01:38 PM
Hi Fatima,

For the first requirement you could use the following approach:
var combo = $telerik.findControl($get("RadGrid1"),"RadComboBox1");

As for the second one, it is difficult to figure out your exact requirement by the provided information. In order to access the generated EditForm controls, you could use the approach provided in the following topic:
( Section Accessing controls in edit/insert form ):
http://www.telerik.com/help/aspnet-ajax/grid-accessing-cells-and-rows.html

I hope this will prove helpful.

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