Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Mar 05, 2007 10:38
open dhtmlx forum
I would like to select one or multiple rows and then delete them.  How do I go about doing this?  I...

I would like to select one or multiple rows and then delete them.  How do I go about doing this?  I need to somehow update our database and then refresh the page.
Answer posted on Mar 05, 2007 10:38

Grid support multiselection:

            grid.enableMultiselect(true)

and next command can be used to delete selected rows:

            grid.deleteSelectedItem()

Basically there are two methods of saving:

a) Serialization the whole TreeGrid to XML ( will have the same format as initialization XML and send it back to server ). Serialization can be configured in the way, so only changed rows will be serialized.

b) You can use dataProcessor lib, it works in the same way as with dhtmlxGrid, please refer to guide ("Data Processing and link with Server Datasource" section)

Answer posted by sematik (Support) on Dec 10, 2014 05:52

Having solved the problem mentioned above, you may also look through the possible related problems with gentt chart and event and display.