I would like to use jqgrid as a function so that I can call it multiple times. The scenario I have in mind is the following:
1. The user opens the page and a jqgrid is displayed.
2. When the user wants to add or edit a row the add- or edit-dailog is opened.
3. Some field may come from another table so they have a link or a button at the end of the row.
4. If the user uses this link or button another dialog opens with a grid with corresponding data for that table.
5. The user can scroll the table and select an entry or he can edit an entry or he can add an entry.
6. If the user selects an entry than the necessary field should be updated in the edit-dialog.
7. If the user choose to add or edit an entry everything is repeated from step 2.
The application I am building is a rest-application using remote json-data. So for every call to the grid the url is different and should be passed as a parameter to the jqgrid-function. Can anyone help me for the steps 5 to 7 in the right direction? Thank you
Kluther