Search
2900 results 1181-1190
Forum
- 21st Feb 2020Different editor select list for each row of a datatableInteresting question! Have you tried making up the 'select' with something based on the inline snippet? // Activate an inline edit on click of a table cell $('#example').on( 'click', 'tbody td:not(:first-child)', function (e) { editor.inline( this, { buttons: { label: '>', fn: function () { this.submit(); } } } ); } );
- 20th Feb 2020How to get the data of row?For 1 and 2, you can use the events, such as submitComplete - the data is the fourth parameter. I don't follow 3, do you mean something like inline editing? Colin
- 20th Feb 2020How to change date format ?Can you post the formats you're using pleas - both wire and display, and the JSON that you're getting? The inline edit would be the same as in the form. Colin
- 12th Feb 2020Attach a document to a cell/rowHello Colin Ah great...would it also work with inline editing? cheers richard
- 10th Feb 2020Datatable rowdetail td addclass addclass where you want inline in the return string,
- 9th Feb 2020Using editor where each cell has its own primary keyinitEdit is probably the event you want here. The alternative would be to not use KeyTable's automatic Editor integration, but rather call inline() yourself when the key event is triggered. Allan
- 7th Feb 2020Changing field type editor for specific rows/cellsKeyTable to automatically trigger inline editing instead of using
- 2nd Feb 2020put ajax data inside an input in DataTableUse editor inline editing: https://editor.datatables.net/reference/api/inline() editor has libraries for PHP, node.js and .net as well. I use it with PHP and MySQL.
- 31st Jan 2020Editable datatable not triggering blur event on changing value to other value after first updateYou can force a submission, with submit: 'all' in the form-options, giving you something like: var editor = new $.fn.dataTable.Editor({ ajax: $table.data('editUrl'), table: '#myTable’, fields:myFieldArray, formOptions: { inline: { onBlur: 'submit', submit: 'all' } } }); Colin
- 31st Jan 2020Definable button on a row ?Hi Kevin Thanks for getting back to me, I've solved the issue by doing this : // Activate an inline edit on click of a table cell $('#example').on('click', 'tbody td:not(:first-child) td:not(:nth-child(2))', function (e) { editor.inline(this); });