Author Topic: isDirty not true after edit  (Read 2522 times)

arbyter

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 43
  • Retired IT Guy
    • View Profile
isDirty not true after edit
« on: March 11, 2019, 11:15:57 pm »
hi
1. i took row-editing as example and adapted it to this script:
https://next.plnkr.co/edit/Hysibr1C6QgJCjaD?preview
i dont find out  why the row after editing is not considered as dirty.
(it never reaches the alert)

2. i would like to have each field of cht active record opend in editmode, so i can move the focus just by tab. No need to click on each field in the active row.
Any hint to achieve this behaviour?

Thank you in advance

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: isDirty not true after edit
« Reply #1 on: March 12, 2019, 02:31:03 pm »
1. Add trackModel: {on: true} and add recIndx ( primary key field name ) to dataModel.

2. Use editModel

Code: [Select]
editModel:{
                onSave:"nextEdit",
                onTab:"nextEdit"
            },