ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: developer1 on April 06, 2022, 07:26:57 pm

Title: Cursor move to the next editable cell in the grid when I Press ENTER
Post by: developer1 on April 06, 2022, 07:26:57 pm
I have a grid with 20 rows with 10 columns per a row. 
In those 1,2,3 columns are not editable rest of the 7 columns are editable.

If I enter a value in forth column and press ENTER then the cursor should come to next column (fifth) editable textbox.
If last column editable reached then it should be focus on forth column for the next row.
If I press ENTER repeatedly need to go on till the last row.
Title: Re: Cursor move to the next editable cell in the grid when I Press ENTER
Post by: paramvir on April 06, 2022, 07:42:43 pm
Please set editModel.onSave = "nextEdit"

https://paramquery.com/pro/api#option-editModel
Title: Re: Cursor move to the next editable cell in the grid when I Press ENTER
Post by: developer1 on April 07, 2022, 06:40:02 pm
I have tired but still non editable cell got focus when hit ENTER
Title: Re: Cursor move to the next editable cell in the grid when I Press ENTER
Post by: paramvir on April 07, 2022, 09:43:40 pm
Please ensure to use the option correctly.
Title: Re: Cursor move to the next editable cell in the grid when I Press ENTER
Post by: developer1 on April 08, 2022, 11:19:24 am
I have implemented correctly but when last cell of the row reached and press enter it will focus on first column that is not editable which already set to editable = false.

My concern is focus should not be on those cell which property set to editable = false
Title: Re: Cursor move to the next editable cell in the grid when I Press ENTER
Post by: developer1 on April 08, 2022, 11:51:17 am
I have made demo for you

please check below link,
https://jsfiddle.net/mvplDeveloper/r2azfxwb/12/

Note : First three columns are not editable....
Title: Re: Cursor move to the next editable cell in the grid when I Press ENTER
Post by: paramvir on April 08, 2022, 12:27:06 pm
Non editable cells can only be skipped when ENTER key is pressed in a editor when editModel.onSave = "nextEdit"

https://jsfiddle.net/gjh95fLx/1/

non editable cells can still be focused with mouse or with keyboard without ENTER key.
Title: Re: Cursor move to the next editable cell in the grid when I Press ENTER
Post by: developer1 on April 08, 2022, 03:15:36 pm
Thanks got the solution