I have a matrix build up from patients and employees.
The user can add / remove these patients (columns) and employees (rows) as he wishes.
The problem I have is getting the cell's (who are combobox's with codes depending on the employee) to update correctly.
If the user adds a employee (row) there isn't a problem since all cells have the same list off codes (and adding a row isn't hard)
But if the user adds a patient (column), each row (can) have a different list off codes, so I need to get these from the server.
And adding a column without rebuilding the entire table isn't easy.
So far there have been 2 attempts at getting this to work correctly (by 2 separate (ex) colleague's), both require extensive javascript code and both have problems.
Either the list of codes is wrong, or adding a row / column to the matrix is extremely slow.
I'v tried googling this but so far haven't found anything useful.
So I was wondering if anyone has done this before, or can point me to a article that could help in getting this to work correctly.
I'v already proposed to change the screen layout so that I wouldn't have to dynamically build and load this matrix but the client doesn't seem happy with that (one extra click seems to be to much)
I could make it so that there is a postback to the server after each add of a employee / patient but that will then be a (big) performance hit, and I'm sure that won't go over well either.
Any help would be appreciated.