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

How to get user control defined by EditFormSettings when edit command button clicked

1 Answer 96 Views
Grid
This is a migrated thread and some comments may be shown as answers.
chen
Top achievements
Rank 1
chen asked on 19 Apr 2015, 09:19 AM

How to get user control defined by EditFormSettings  when edit command button clicked?

I'm using a user control to update  data, and setting EditFormSettings like this :

when "Edit" button clicked, the area defined in my webusercontrol is toggled, but the data was not loaded into the edit area, and just like this:

I used  OnDataBound method to look for the usercontrol, but it does not work. and the code is like this:

In the function, the value of userControl is null

how to solve this problem? 

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 23 Apr 2015, 07:15 AM
Hi Chen,

You can use the approach provided in the following section in order to access the UserControl:
( Section Accessing controls in edit/insert mode )
http://www.telerik.com/help/aspnet-ajax/grid-accessing-cells-and-rows.html


In addition, you can also examine this live sample:
http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/edit-form-types/defaultcs.aspx

Hope this helps.

Regards,
Eyup
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Grid
Asked by
chen
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or