Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
615
Schedule matrix implementation
posted

Hello,

For a client I have to implement a scheduling module. The purpose of this module is to link crewmembers to jobs available. It has to work as follows:

- Vertically there is a row shown for each job in the database
- Horizontally, there are a few columns with job info (date, name). Following those columns is a column for each crewmember in the database. These columns are dynamically generated on initialisation.
- By clicking one of the fields in the grid, the user of that column is linked to the job of that row. Links made are indicated by a different background color of the cell.

I'm using the UltraWebGrid (8.1 release) to implement this. Getting the correct rows and columns shown isn't a problem, but performance is. For some reason, on every postback (the user clicks a matrix field to link a user to a job) the grid is databinding again. That takes a while and thus slows the whole thing down.

The only thing I want to do when a user clicks a cell is enable or disable the correct link in the database. I don't get why all the data has to be reloaded. Also, even with AJAX functionality enabled, the grid is causing an entire postback. I could prevent that with an extra WARP offcourse, but I don't understand why it's doing this in the first place.

How can I implement this in a way the performance meets up to my clients expectations?