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

Radgrid Editpopup dynamically

2 Answers 56 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Amit
Top achievements
Rank 1
Amit asked on 03 Dec 2012, 01:44 PM
Hello,

I am using radgrid,
I want creat edit popup form (EditFormSettings) dynamically in aspx.cs, not at design time in aspx.
My datasource is dynamic.I am created columns at runtime.

Please suggest me any solution.

Regards,
Amit.

2 Answers, 1 is accepted

Sort by
0
Amit
Top achievements
Rank 1
answered on 04 Dec 2012, 05:53 AM

I like to write the code at code behind for editform settings just like as follow.

rgdImportExport.MasterTableView.EditFormSettings.EditFormType =

GridEditFormType.Template;

rgdImportExport.MasterTableView.EditFormSettings.PopUpSettings.Modal =

true;

rgdImportExport.MasterTableView.EditFormSettings.FormTemplate =


Regards
Amit.
0
Eyup
Telerik team
answered on 06 Dec 2012, 09:04 AM
Hi Amit,

You will need to create a template class which inherits the ITemplate interface:
http://www.telerik.com/help/aspnet-ajax/grid-programmatic-creation.html#Section4
( Section Creating template columns programmatically )
http://msdn.microsoft.com/en-us/library/y0h809ak%28v=vs.71%29.aspx

I hope this will prove helpful.

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