This is a migrated thread and some comments may be shown as answers.

Can the delete confirmation access the data being deleted ?

0 Answers 48 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 21 May 2012, 07:58 PM
Instead of a 'delete this record?' prompt I would prefer to hint at what is being deleted.

Supposing a
model: {
    id: "treeview",
    fields: {
        treeview:   { editable:false, field: "treeview/text()" },
        name:       { editable:true,  field: "name/text()", defaultValue:"" },
        timestamp:  { editable:false, field: "timestamp/text()", defaultValue:"" }
    }

A grid with this config does not prompt with the ${name}
editable: { mode:"popup", confirmation: "Delete ${name}? Really?" }

nor can I use a function for the confirmation message

Any ideas ?

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Richard
Top achievements
Rank 1
Share this question
or