OPen Record in "Edit.chtml"

Hi
I would like to open a selected record in my own form eg. Edit.chtml for editing when I click the link below in my grid but I can't seem to find how to do it

 column.Add("Actions", col =>
                             {
                                 col.Commands(cmd =>
                                 {
                                     cmd.Command(CommandTypes.Edit).Text("Edit").ImageUrl(Url.Content("~/Content/Images/Edit.png")).ItemType((UnBoundItemTypes)Convert.ToInt32(ViewData["UnBoundItemTypes"])).ItemOption((UnboundItemOptions)Convert.ToInt32(ViewData["UnboundItemOptions"]));
                                 });

Many thanks

Zak

4 Replies

AA Abdul Abdulai September 3, 2013 10:35 PM UTC

Hi,

Can someone please help me with this issue.

Many thanks

 AA


BM Bala Murugan A.S Syncfusion Team September 4, 2013 07:15 AM UTC

Hi Abdul Abdulai,

 

Thanks for using Syncfusion Products.

 

We suggest you to use DialogTemplate editing with unbound column to achieve your requirement. We have prepared a simple sample to demonstrate this and the same can be downloaded from the below link.

 

Sample: DialogEditing.zip

 

Online documentation link:

http://help.syncfusion.com/ug/asp.net%20mvc/grid/documents/editmodeconfiguratio.htm

http://help.syncfusion.com/ug/asp.net%20mvc/grid/documents/unboundcolumnediting.htm

 

Online sample link:

http://mvc.syncfusion.com/demos/ui/grid/Editing/DialogEdit

 

Please let us know if you need any further assistance.

 

Regards,

Bala Murugan A.S



JD Jean Domagni January 6, 2014 05:57 PM UTC

Hi Bala Murugan,
Can you make the sample zip project available for download again?
I tried to download it but it wont let me.

Thanks


HJ Hariharan J V Syncfusion Team January 8, 2014 12:52 PM UTC

Hi Jean Domagni,

 

Thanks for your update.

 

We have created a sample for your requirement("Dialog Template editing with unbound column") and the same sample can be downloaded from the below link.

 

Sample: MvcApplication11.zip

 

Please let us know if you need any further assistance.

 

Regards,

Hariharan J.V.

 


Loader.
Up arrow icon