I have 3 database tables. The first is users, the second is tasks and the third is tasks_per_user, where i store the relations between users and tasks. A user can have many tasks (or all) and each tasks may belong to many users.
What i want is to create in jqGrid a Multiple Selection Element, where i can list the selected tasks per user, but also be able to change it. I want the list element to present all the available tasks from the tasks table while present as selected the ones that are stored in the tasks_per_user for the specific user.
I have managed to do this for a single select element but i can’t make it work for multiple.
Is this possible?
If I understand you correct you need fill
taskscolumn as comma separated tasks of the user. Thetaskscolumn column can havewhere the
valueordataUrlprovide the list of possible tasks. See the demo from the answer and the demo from another answer. I recommend you additionally to read the answer which describes a bug in IE7/IE8 with the corresponding bug fix.