DHTMLX Docs & Samples Explorer

removeColumn(pId, index, removeItems, moveAfter)

Removes the specified item.

Required file: ext/dhtmlxform_dyn.js

Parameters:

  • pId - the parent item id, i.e. the id of the existing item which have subform with columns (null for top item)
  • index - (int) index of newcolumn, if parent item do not have any columns - not possible to delete
  • removeItems - (true/false, default false) set to true to delete items inside column, otherwise items will moved to column before (or next column if you're deleting first one)
  • moveAfter - (true/false, default false) if removeItems set to false, move items to next column (prev column if you're deleting last one)
  • for radio button pId should be [pId, pValue]