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

need technical support on sending data from kendogrid popup window to controller

1 Answer 38 Views
Grid
This is a migrated thread and some comments may be shown as answers.
vijay
Top achievements
Rank 1
vijay asked on 07 Oct 2014, 07:15 PM
Hi,

I am using kendoGrid() to display data, which receives from database in MVC model.

In this kendoGrid, we included "Edit" feature given by kendoGrid.  But when trying to update the data,  the cursor is going into the controller, but the parameter(model) for that action contains null data. i.e. the data is not getting posted from view to controller.

for your reference, I have attached the code files.

Thanks in advance.

Swarnalatha

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 09 Oct 2014, 08:58 AM
Hi Swarnalatha,

This happens because the Grid's DataSource is configured to work in batch mode. In that case an array of objects is sent during the updates, however the controller is not expecting that and fails to bind the values properly. I would suggest either disabling the batch option or setting up controller properly (see example).

Regards,
Alexander Popov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
vijay
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or