Editor: Datatables uses a local javascript object arrray for data
Editor: Datatables uses a local javascript object arrray for data
Link to test case: http://live.datatables.net/nujicawe/1/
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:
How do i set up the editor to only edit the "DENY" field as a select type with Yes/No options? On edit i want the table to show the changed value(s) for the selected row(s). I have an external button to process all the data pulling myself due to system requirements.
A simple example of how to get the editor to work with this case would be useful. Here is what i tried locally but i am getting errors launching the editor.
editor = new $.fn.dataTable.Editor({
table: "#dgItem",
idSrc: "ITEM",
fields: [
{
name: "ITEM",
type: "readonly",
label: "ITEM"},
{
name: "ITEM_DENY",
type: "select",
options: [
{ label: "No", value: "N" },
{ label: "Yes", value: "Y" }]
}]
});
Any help would be greatly appreciated. Thanks
Replies
Hi,
Are you referring to the "flash" of the edited row, or to the data actually submitted to the server? The flash is on the whole row, rather than per column and there isn't a configuration option for that I'm afraid.
Allan