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

Nested Grid/Inline Editing

1 Answer 164 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Doug
Top achievements
Rank 1
Doug asked on 11 Mar 2016, 06:19 PM

Hello:

 

We have been struggling for a few days with inline editing with a nested Grid.

currently the grid is constructed as follows:

 

<div data-role="grid" data-source="{transport:{read:function(e){ e.success(eqCharges)}, update: function(e){ e.success(); }, destroy: function(e){ e.success();}, error:function(e){debugger;}},schema:{model:{id:'sbwrkordrchrge_rn'}}}" data-editable="{mode: 'inline'}" data-scrollable="false" data-toolbar="['create']" data-columns="[ {command:'edit', attributes: {style:'width:10%;'}}, {field: 'sbwrkordrchrge_rn', hidden:true}, {field: 'sbwrkordrchrge_qntty', title:'Quantity', type:'number'}, {field: 'sbwrkordrchrge_dscrptn', title: 'Description'}, {field: 'sbwrkordrchrge_unt_cst', title: 'Unit Price', format: '{0:c}'}, {field: '', title: 'Price', format: '{0:c}'}, {field: '', title: 'Status'}, {command: 'destroy', attributes: {style:'width:10%;'}} ]"></div>

 

the Grid displays as expected.  the Edit command enables editing as it should.  the problem arises when "update" or "cancel" are pressed while editing: neither has any function.

 

digging into the kendo.all.js file shows that upon cancel or update the data-uid's become mismatched- this appears to happen in the 'pristine data' function.

 

Any assistance at all is appreciated.

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 16 Mar 2016, 10:07 AM

Hello Doug,

 

I've just cloned this example into this dojo and changed the edit mode to inline. All seems to be working properly. Am I missing something?

 

Regards,
Nikolay Rusev
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
Doug
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or