ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: arbyter on March 11, 2019, 11:15:57 pm

Title: isDirty not true after edit
Post by: arbyter 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
Title: Re: isDirty not true after edit
Post by: paramvir 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"
            },