Author Topic: EndSelect and SelectChange couldn't be triggered when use button to add new row  (Read 418 times)

hyh888

  • Pro Enterprise
  • Full Member
  • *
  • Posts: 130
    • View Profile
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.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6255
    • View Profile
There is no relation between selection events and click of button to add new row.

hyh888

  • Pro Enterprise
  • Full Member
  • *
  • Posts: 130
    • View Profile
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).
« Last Edit: August 21, 2023, 10:31:11 am by hyh888 »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6255
    • View Profile
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.
« Last Edit: August 22, 2023, 02:48:38 pm by paramvir »