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

Weird grid behavior

1 Answer 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jens
Top achievements
Rank 1
Jens asked on 11 Oct 2016, 09:23 AM

I have this ASP.NET MVC application using kendo ui in the frontend. 

I've made a grid that you can edit inline and sort by using drag and drop. 

Observe the follwing fiddle: https://jsfiddle.net/c817crh6/2/

I have two problems with this grid

1) When editing a textfield and clicking save, the row is not saved.  Only the read method is called on the server.

When I edit a textfield and click ( or tab ) out of the textfield, then it works fine ( First the update, then the read method is called ).

-> I think kendo does not detect an update on the model but can't figure out how to forse to update the model. 

2) When changing the order by draging in the list, the save button is calling the delete method on the server.  

 

My backend controller looks like this

public ActionResult Management_Edit([DataSourceRequest] DataSourceRequest request, ManagementViewModel management){ // Code to edit }

 

thanks in advance

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 12 Oct 2016, 10:53 AM
Hello Jens,

Please refer to the following section of our documentation for a detailed explanation, and links to various examples of Sortable/ Editable Grid widgets integration:

http://docs.telerik.com/kendo-ui/controls/interactivity/sortable/integration#sortable-and-editable-grid

I hope this helps.

Regards,
Dimiter Topalov
Telerik by Progress
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
Tags
Grid
Asked by
Jens
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or