Author Topic: clicksToEdit: 1  (Read 1487 times)

mscodigno

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 24
    • View Profile
clicksToEdit: 1
« on: March 09, 2021, 06:21:56 pm »
Hello, there is "clicksToEdit: 1" parameter in the editing model, but when you click on another cell while the textbox is open, it first closes the textbox and opens the editor at the second click. Can I do this with one click?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: clicksToEdit: 1
« Reply #1 on: March 09, 2021, 09:08:12 pm »
It works with single click. Please check this example: https://paramquery.com/pro/demos/editing_custom

mscodigno

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: clicksToEdit: 1
« Reply #2 on: March 10, 2021, 08:21:08 pm »
Can you examine this example? "clicksToEdit: 1" but does not work;

https://jsfiddle.net/p7bnts9z/1/

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: clicksToEdit: 1
« Reply #3 on: March 10, 2021, 08:56:46 pm »
That's prevented by call to refresh inside cellSave event

Code: [Select]
cellSave: function() {
//this.refresh(); comment it.
},

Now it works fine: https://jsfiddle.net/6nkqyp97/1/