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

[Solved] Changing the EditItem Templete

1 Answer 110 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Loai Labani
Top achievements
Rank 1
Loai Labani asked on 01 Jan 2010, 03:20 AM
Hi,

I am trying to modify the auto generated EditForm becouse I need to use list for example rether then using a text box.
***** I have tried the WebUsercontrol and I get this message: 

Value cannot be null.
Parameter name: virtualPath





**** If I want use the templete, How to create the action button for editing and cancel, 
And, Is there any way to modify the auto generated form to do avoid more work?

best regards, 

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 04 Jan 2010, 05:40 AM
Hello Loai,

You may get this error when the UserControl path is not provided. Make sure that you set the UserControlName property for the grid to the corresponding usercontrol name as shown below:
aspx:
<EditFormSettings EditFormType="WebUserControl" UserControlName="WebUserControl1.ascx"
</EditFormSettings> 

Another solution would be to replace the autogenerated form with a FormTemplate. Refer to the following online demos to understand how to use a FormTemplate and a WebUserControl in RadGrid:
Form Template Edit Form
User Control Edit Form

Thanks
Princy.
Tags
Grid
Asked by
Loai Labani
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or