I have a several simple grids of words and comboboxes which lets the user add a word to the respective grid. Similarly, in the grid, I have an x column to allow the user to delete the word from the grid (and it goes back into the combobox dropdown).
I have this working in the code behind, but it's rather slow. Each time the user does something, it involves a round-trip to the server.
When the user hits the save button, I get the contents of the grid and save it off, so it seems rather pointless to have all these round-trips to the server just to manipulate the grid!
I'd like to do the add/delete in the client side in javascript. I'm looking for some easy to understand examples of this. The reason I'm using a combobox and not 2 lists/grids is that the user can type a new word to add to the list.
I already have the combo box's dropdown list and the grid loaded. I'm just looking for some javascript that would "move" items back and forth between the dropdown list and the grid. Ideally some sort of control I could use over and over again! If anyone has an example of something like this they could share, that would be great.
Michael Grant
I have this working in the code behind, but it's rather slow. Each time the user does something, it involves a round-trip to the server.
When the user hits the save button, I get the contents of the grid and save it off, so it seems rather pointless to have all these round-trips to the server just to manipulate the grid!
I'd like to do the add/delete in the client side in javascript. I'm looking for some easy to understand examples of this. The reason I'm using a combobox and not 2 lists/grids is that the user can type a new word to add to the list.
I already have the combo box's dropdown list and the grid loaded. I'm just looking for some javascript that would "move" items back and forth between the dropdown list and the grid. Ideally some sort of control I could use over and over again! If anyone has an example of something like this they could share, that would be great.
Michael Grant