Master/Detail strange behaviour

3 posts, 0 answers
  1. Mattia
    Mattia avatar
    33 posts
    Member since:
    Mar 2015

    Posted 09 Mar 2016 Link to this post

    Hello! I'm developing a master/detail with two kendo grids, as you can see in this kendo dojo:

    When you click on a row on top master grid, in the bottom detail grid appears the selected row "projected" in different way.

    You can edit the fields in detail grid and this will affect also the master grid.

    But there is an unexpected behaviour: looking at bottom field (InsertionDate) in detail grid, when you edit another field the name "InsertionDate" is replaced by the name of edited field, and also the red dirty corner is applyed always at bottom field.

    After some debugging I have managed to understand the something goes wrong inside function that handles 'save' event in detail grid, in particullary in these code lines:

    row.set(prop, value);
    var selectedRow = $('#masterGrid').find("tbody>tr[data-uid=" + ctrl.selectedRowUid + "]");

    Is this some kind of kendo bug or am I achieving this behaviour in a wrong way? Do you have any suggestion for this issue?

    Mattia Thiella


  2. Mattia
    Mattia avatar
    33 posts
    Member since:
    Mar 2015

    Posted 10 Mar 2016 in reply to Mattia Link to this post

    Ok I have resolved using a little different approach: I use editCell method to set the field editable, and then I set the value.

    Here you can check the demo if someone is interessed : demo


  3. Kiril Nikolov
    Kiril Nikolov avatar
    2596 posts

    Posted 11 Mar 2016 Link to this post

    Hello Mattia,

    Thanks for sharing your solution.

    As a small gesture of gratitude I have updated your Telerik Points balance.

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