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

Problems with inline editing

1 Answer 182 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Justin
Top achievements
Rank 1
Justin asked on 29 Aug 2013, 08:31 PM
I've been struggling to get inline grid editing to work.

My first attempt was to take the MVVM demo (modified a little), and changing data-editable='true' to data-editable='inline'. When I did that, it behaves  erratically: it updates the underlying data immediately (before saving or cancelling), the "update" button does nothing, and the "cancel" button clears the entire grid. Here's a demo: http://jsbin.com/EHIYuDE/3/edit?html,output.   What's going wrong here?

Next I tried doing it in a non-MVVM way, which I also could not get to work: http://jsbin.com/EHIYuDE/6/edit?html,outputWhat am I doing wrong here?

Any example of how to get inline editing to work with local data, preferably in an MVVM style, would be much appreciated.

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 02 Sep 2013, 04:19 PM
Hello Justin,

Both implementation have the same problem - they use a mixture of MVVM and standard initialization.
Here is an example of Grid with inline editing bound and initialized via MVVM:
Note that the component is bound to the source via data-bind attribute. For more information please check the following help topics:

Regards,
Alexander Valchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Justin
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or