ParamQuery grid support forum

General Category => Help for ParamQuery Grid (free version) => Topic started by: hyh888 on August 21, 2023, 04:22:19 am

Title: EndSelect and SelectChange couldn't be triggered when use button to add new row
Post by: hyh888 on August 21, 2023, 04:22:19 am
in Batch editing demo, EndSelect and SelectChange events  couldn't be triggered when use "new product" button to add a new row. This will make a lot of trouble in master-slave grid case, developer couldn't control the slave grid when user use "new product" button to add a new row.
Title: Re: EndSelect and SelectChange couldn't be triggered when use button to add new row
Post by: paramvir on August 21, 2023, 06:44:59 am
There is no relation between selection events and click of button to add new row.
Title: Re: EndSelect and SelectChange couldn't be triggered when use button to add new row
Post by: hyh888 on August 21, 2023, 10:24:42 am
In my case, there are master and slave grids, when click diffrent cell in master grid, endSelect is used to change content in slave grid by querying data from server. If "new product" button could not trigger EndSelect or SelectChang, the data in slave grid will not change, but the focus is in the last row(new row), but the focus is in the new row.
It will make misunderstanding for users.
End-user will find that a empty new row which has a slave grid with related-data of other row(at this time, the focus is in the new row).
Title: Re: EndSelect and SelectChange couldn't be triggered when use button to add new row
Post by: paramvir on August 22, 2023, 02:42:34 pm
Selection, focus, editing of cells are different functions that fire different events.

You need to call selection API in your new row button event listener to fire selection related events.