How to add a div id using sDom
How to add a div id using sDom
apalumbo
Posts: 1Questions: 0Answers: 0
Hello,
I'am trying to add a div containing an image button in .net but with no success:
In my Head: this function is called when my gridview is bound.
[code]
/* Mise en forme Gridview avec plugin datatable */
function Init_Order_DataTable(gvID) {
var oTable = $(gvID).dataTable({
"bJQueryUI": true,
"bProcessing": true,
"bPaginate": true,
"sPaginationType": "full_numbers",
"oLanguage": {
"sUrl": "../../common/js/datatable_fr-FR.txt"
},
"aaSorting": [],
"aoColumns": [
{ "bSortable": false }, { "sType": "date-euro" }, null, null, null, null, { "sClass": "td_right"}],
"aoColumnDefs": [
{ "sClass": "td_center", "aTargets": [0, 1, 2, 3, 4, 5]}],
"sDom": '<"H"lfr><"#Export">t<"F"ip>'
});
}
[/code]
So my problem is with sDom:
[code]
"sDom": '<"H"lfr><"#Export">t<"F"ip>'
[/code]
And then in the body:
[code]
[/code]
Have you got any idea?
Thanks in advance for your help.
I'am trying to add a div containing an image button in .net but with no success:
In my Head: this function is called when my gridview is bound.
[code]
/* Mise en forme Gridview avec plugin datatable */
function Init_Order_DataTable(gvID) {
var oTable = $(gvID).dataTable({
"bJQueryUI": true,
"bProcessing": true,
"bPaginate": true,
"sPaginationType": "full_numbers",
"oLanguage": {
"sUrl": "../../common/js/datatable_fr-FR.txt"
},
"aaSorting": [],
"aoColumns": [
{ "bSortable": false }, { "sType": "date-euro" }, null, null, null, null, { "sClass": "td_right"}],
"aoColumnDefs": [
{ "sClass": "td_center", "aTargets": [0, 1, 2, 3, 4, 5]}],
"sDom": '<"H"lfr><"#Export">t<"F"ip>'
});
}
[/code]
So my problem is with sDom:
[code]
"sDom": '<"H"lfr><"#Export">t<"F"ip>'
[/code]
And then in the body:
[code]
[/code]
Have you got any idea?
Thanks in advance for your help.
This discussion has been closed.
Replies
[code]
// I don't know ASP, so I'll assume you can write your img tag into a Javascript var named img
var img = "";
$("#Export").css("float", "right").css("padding-bottom", "3px").html(img);
[/code]
Allan