Nested Grid/Inline Editing

2 posts, 0 answers
  1. Doug
    Doug avatar
    3 posts
    Member since:
    Nov 2015

    Posted 11 Mar 2016 Link to this post



    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.

  2. Nikolay Rusev
    Nikolay Rusev avatar
    2289 posts

    Posted 16 Mar 2016 Link to this post

    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?


    Nikolay Rusev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top