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

[Solved] In GridAction Method, How to pass value from controller to view

0 Answers 42 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Murthy
Top achievements
Rank 1
Murthy asked on 28 May 2012, 08:01 AM
Hello Team,

My Code is as below,

My Controller method

[HttpPost]

[GridAction]

public void InsertEmployee(EmployeeModel model)

{

string result = _service.INsertEmployee(model);

var cr = dataStore.Get<EmployeeSearchModel>();

return View(new GridModel(_service.GetEmployeeBySearchParas(cr)));

}

View:

@html.Telerik.Grid<EmployeeModel>()

.DataBinding (databinding => databinding.Ajax()

.Insert("InsertEmployee", "Employee"))

I want to display the "result" in the view in a label after the insert method is executed.

 

please suggest me how to do this.

Am i missing anything.

Thanks,

Murthy.


Tags
Grid
Asked by
Murthy
Top achievements
Rank 1
Share this question
or