I have a razor view which contains both field controls and grid for the fields in the same page. If I click the edit button in the grid, then I want to get the row data and set to the fields for editing option.

I got the grid's row data by using the rowId like

 var rowData = $('#CorpGroupSearchGrid').getRowData(rowId);

Now I want to load the rowData to the model or populate it on the field controls. I did it like following but it is not working. I don't know how doing it, please anybody help.

$("#CorpGroupAll").html(rowData);

The 'CorpGroupAll' is the Id of the parent div tag of the field controls.

Related posts

Recent Viewed