PDA

View Full Version : Add/insert new row


donalconlon
09-26-2006, 05:39 PM
1. Would be great to allow the user to add a new row, or insert a row at a given position.

2. Ability to reposition rows, move up/down?

jack.slocum
09-26-2006, 06:30 PM
donal, they can but you would have to add the button or whatever to initiate it. It's actually trivial. The easiest way is to provide dummy data:


var rowTemplate = ['New Plant 1', 'Shade', 1, 0, false];
dm.insertRow(0, rowTemplate);
grid.startEditing(0, 0);


2. I will be putting out a demo soon (tonight?) that includes drag and drop row ordering.