Drag value and copy over to other rows - Like excel
Drag value and copy over to other rows - Like excel
singhswat
Posts: 20Questions: 7Answers: 0
Hi,
I have got a feature request - not sure if some has implemented something similar. If so, then please share a reference.
Request - Our users want to copy over comments entered in row 1 to other rows say until row 10... like we do in excel
thanks
S
This discussion has been closed.
Replies
Hi @singhswat ,
Something like this, you mean!?
Cheers,
Colin
Yes - thanks Colin
But that looks like a paid version
Yep, it's Editor. The KeyTables extension is still available for use.
C
I think Colin meant the AutoFill Extension.
Kevin
Ah, yep, thanks Kevin, got a wandering mind today!
Thanks Guys...
My code snippet
var table2 = $('#DtExample').DataTable({
"processing": true,
"autoWidth": false,
"serverSide": false,
"filter": true,
"paging": false,
"autoFill": true,
"pagelength": 5,
....
},
"columnDefs": [
...
{
"targets": [1],
"visible": true,
"searchable": true,
"width": "50px",
"autoFill": {
vertical: true
},
render: function (data, type, full, meta) {
return "
";
},
This is not working... am i missing something?
Did you install the AutoFill include files (dataTables.autoFill.min.js and autoFill.dataTables.min.css)?
If this doesn't help please provide a link to your page or a test case replicating the issue.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
Thanks Kevin it works perfectly fine after adding the js and css...
I already have code that captures edited rows and post back only these edited rows, now if I autofill the rows then the “Callback_details” is not getting fired… any trick for this? (Apologies, I know if have deviated from the original question slightly.)
My code below ( for reference)
Maybe one of the AutoFill Events would help. If not please post a link to your page or a test case so we can help. There is a lot of code above to look through for debugging.
Kevin
Thanks. How do I close the thread? or mark an answer... I'm not getting option!
If you hover on a message, you should see a cog - which has an option to mark it as the answer.
C