Function render datatables to send data-* html?
up vote
0
down vote
favorite
I have some problem in datatbles render function.
$('#msidang-proposal').DataTable(
"ajaxSource": "<?php echo base_url(); ?>mhs/get_msidang_proposal",
"columns": [
"data": "jenis" ,
data: null, render: function ( data, type, row )
return '<a href="'+data.link+'" target="_blank" />'+data.nama_file+'</a>'
,
data: null, render: function ( data, type, row )
return '<button class="w3-blue-grey control" data-set="edit_dokumen">Edit</button>'
],
"ordering": false,
"searching": false,
"paging": false
);
Problem is data-set not be read, and when i click it not event happen.
Somebody any solution? thanks.
jquery datatables
add a comment |
up vote
0
down vote
favorite
I have some problem in datatbles render function.
$('#msidang-proposal').DataTable(
"ajaxSource": "<?php echo base_url(); ?>mhs/get_msidang_proposal",
"columns": [
"data": "jenis" ,
data: null, render: function ( data, type, row )
return '<a href="'+data.link+'" target="_blank" />'+data.nama_file+'</a>'
,
data: null, render: function ( data, type, row )
return '<button class="w3-blue-grey control" data-set="edit_dokumen">Edit</button>'
],
"ordering": false,
"searching": false,
"paging": false
);
Problem is data-set not be read, and when i click it not event happen.
Somebody any solution? thanks.
jquery datatables
Take a look at your code again. You havedata: null
but it seem not to be what the code itself expect.
– davidkonrad
Nov 12 at 8:08
I have changed to not null and the problem remains unresolved
– Muhammad Rizki
Nov 13 at 5:33
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have some problem in datatbles render function.
$('#msidang-proposal').DataTable(
"ajaxSource": "<?php echo base_url(); ?>mhs/get_msidang_proposal",
"columns": [
"data": "jenis" ,
data: null, render: function ( data, type, row )
return '<a href="'+data.link+'" target="_blank" />'+data.nama_file+'</a>'
,
data: null, render: function ( data, type, row )
return '<button class="w3-blue-grey control" data-set="edit_dokumen">Edit</button>'
],
"ordering": false,
"searching": false,
"paging": false
);
Problem is data-set not be read, and when i click it not event happen.
Somebody any solution? thanks.
jquery datatables
I have some problem in datatbles render function.
$('#msidang-proposal').DataTable(
"ajaxSource": "<?php echo base_url(); ?>mhs/get_msidang_proposal",
"columns": [
"data": "jenis" ,
data: null, render: function ( data, type, row )
return '<a href="'+data.link+'" target="_blank" />'+data.nama_file+'</a>'
,
data: null, render: function ( data, type, row )
return '<button class="w3-blue-grey control" data-set="edit_dokumen">Edit</button>'
],
"ordering": false,
"searching": false,
"paging": false
);
Problem is data-set not be read, and when i click it not event happen.
Somebody any solution? thanks.
jquery datatables
jquery datatables
edited Nov 13 at 4:23
Gyrocode.com
36.1k868111
36.1k868111
asked Nov 11 at 13:53
Muhammad Rizki
12
12
Take a look at your code again. You havedata: null
but it seem not to be what the code itself expect.
– davidkonrad
Nov 12 at 8:08
I have changed to not null and the problem remains unresolved
– Muhammad Rizki
Nov 13 at 5:33
add a comment |
Take a look at your code again. You havedata: null
but it seem not to be what the code itself expect.
– davidkonrad
Nov 12 at 8:08
I have changed to not null and the problem remains unresolved
– Muhammad Rizki
Nov 13 at 5:33
Take a look at your code again. You have
data: null
but it seem not to be what the code itself expect.– davidkonrad
Nov 12 at 8:08
Take a look at your code again. You have
data: null
but it seem not to be what the code itself expect.– davidkonrad
Nov 12 at 8:08
I have changed to not null and the problem remains unresolved
– Muhammad Rizki
Nov 13 at 5:33
I have changed to not null and the problem remains unresolved
– Muhammad Rizki
Nov 13 at 5:33
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53249432%2ffunction-render-datatables-to-send-data-html%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Take a look at your code again. You have
data: null
but it seem not to be what the code itself expect.– davidkonrad
Nov 12 at 8:08
I have changed to not null and the problem remains unresolved
– Muhammad Rizki
Nov 13 at 5:33