I’m new to JQgrid and can’t figure out how to add a default button to the Add part of the grid.
So there is a grid with rows that have the columns: “Date, name and dose” for a medications grid. When they press the add medication button at the bottom it opens the add medication dialog with three textfields for them to add this information. All I want to do is make it so that when they press “Enter” on this dialog it adds the medication. So that the don’t have to press the add button in the dialog.
I don’t even know where to put this in the JQGrid code, which is very big so I don’t know which code to post, if anyone tells me sort of where I need to post it I can post code.
Thanks
Parameter savekey:[true,13] of Add/Edit forms will solve your problem.
For example,
Because you probably want to have the settings in all the grids which you use you can prefer to change the default option of jqGrid for Add/Edit dialog on one place: