The row filtering API is not implemented in the Gantt chart at the moment.
However, you can hide the row by setting .row.hidden attribute of the task to true:
var task = dp.tasks.list[0[;
if (!task.row) {
task.row = {};
}
task.row.hidden = true;
dp.update();