We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Issue Related to Grid

Thread ID:





101003 Sep 19,2011 03:22 PM UTC Sep 20,2011 11:31 AM UTC ASP.NET MVC (Classic) 1
Tags: Tools
Asked On September 19, 2011 03:22 PM UTC

i want to Edit selected row content in Syncfusion grid (razor view).
hpw i can do this. can you provide a information about it or sample example

Eswari S [Syncfusion]
Replied On September 20, 2011 11:31 AM UTC

Hi Shivkumar,

We have prepared the sample for grid editing and the same can be downloaded from the following link :


Steps to check with the sample :

Step #1 : Specify the GridEditing mode through the EditMode

@{ Html.Syncfusion().Grid("SampleGrid")
. . . .

.DeleteAction("DeleteOrder"); // action mappers for editing operations

.ToolBar(tools =>
.Add(GridToolBarItems.Cancel); // toolbar items

.Editing(edit =>
edit.AllowEdit(true) // set allow edit as true
edit.EditMode(GridEditMode.Normal); //specify the EditMode
edit.PrimaryKey(key => key.Add(p => p.OrderID)); // OrderID is the primary key


Step #2 : [Controller]


public ActionResult OrderSave(EditableOrder ord) // action for record saving

var data = OrderRepository.GetAllRecords();

return data.GridActions();


public ActionResult AddOrder(EditableOrder ord) // action for adding records

var data = OrderRepository.GetAllRecords();

return data.GridActions();


public ActionResult DeleteOrder(int OrderID) // action for deleting records


var data = OrderRepository.GetAllRecords();

return data.GridActions();


St Step #3: Add the MicrosoftMvcValidation.debug.js file in the Layout.cshtml page.

. . .

Step #4: Add the following script files when the UnobtrusiveJavaScriptEnabled is true in web.config file.


. . .
// if it is true ,add the following script files


. . . .
. . . .

Currently ,we don’t have the UG document for Razor. Shortly ,we will the update it in online. For the meantime ,we would suggest you to refer to the following UG link:


Please try this and let us know if you need any further assistance.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon