All Discussions - DataTables forums http://datatables.net/forums/discussions/feed.rss Fri, 24 May 13 14:42:58 +0100 All Discussions - DataTables forums en-CA Datatable fnAddData - class and tooltip not working http://datatables.net/forums/discussion/15357/datatable-fnadddata-class-and-tooltip-not-working Wed, 01 May 2013 17:40:19 +0100 delsalsa 15357@/forums/discussions
I have a table

            <table id="datatable_example" class="responsive table table-striped table-bordered" style="width:100%;margin-bottom:0; ">
              <thead>
                <tr>
                  <th class="jv no_sort"><label class="checkbox ">
                      <input type="checkbox">
                    </label></th>
                  <th class="to_hide_phone  no_sort">Gfall</th>
                  <th class="to_hide_phone  no_sort">Description</th>
                  <th class="ms no_sort ">Actions</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td><label class="checkbox ">
                      <input type="checkbox">
                    </label></td>
                  <td>AAA</td>
                  <td class="to_hide_phone">Full price for gum?!</td>
                  <td  class="ms"><div class="btn-group"> <a class="btn btn-small"  rel="tooltip" data-placement="left" data-original-title=" Edit "><i class="gicon-edit"></i></a> <a class="btn btn-small" rel="tooltip" data-placement="top" data-original-title="View"><i class="gicon-eye-open"></i></a> <a class="btn  btn-small" rel="tooltip" data-placement="bottom" data-original-title="Remove"><i class="gicon-remove "></i></a> </div></td>
                </tr>
              </tbody>
            </table>


class checkbox and the tooltip work fine. Now I am loading with Ajax some data, and use the fnAddData for adding. Works fine, but class and tooltip dont work. here is the code :

             		tmp1 = '<label class="checkbox "> <input type="checkbox"> </label>';
             		tmp2 =  res.DATA[i][0] + ' - ' + res.DATA[i][1];
             		tmp3 =  res.DATA[i][2];
             		tmp4 = '<div class="btn-group"> <a class="btn btn-small"  rel="tooltip" data-placement="left" data-original-title=" Edit "><i class="gicon-edit"></i></a> <a class="btn btn-small" rel="tooltip" data-placement="top" data-original-title="View"><i class="gicon-eye-open"></i></a> <a class="btn  btn-small" rel="tooltip" data-placement="bottom" data-original-title="Remove"><i class="gicon-remove "></i></a> </div>';


	$('#datatable_example').dataTable().fnAddData( [
	     tmp1
	  ,  tmp2
	  ,  tmp3
	  ,  tmp4
	] ); 


Any Ideas?]]>
Spanish languaje http://datatables.net/forums/discussion/15682/spanish-languaje Fri, 24 May 2013 14:22:24 +0100 estudios 15682@/forums/discussions Thanks again]]> Getting Error : Json data from server could not be parsed. This is caused by JSON formatting error. http://datatables.net/forums/discussion/15553/getting-error-json-data-from-server-could-not-be-parsed.-this-is-caused-by-json-formatting-error. Thu, 16 May 2013 11:04:32 +0100 rajneeshkmr 15553@/forums/discussions I am using SQL server 2005 at my BackEnd and trying to retrieve data from server in the form of JSON. i validated the JSON and it's Valid. When i paste the JSON in file and try to access it, it's working fine.
Please find Below the code.
$(document).ready(function () {
// $.fn.dataTableExt.sErrMode = 'throw';
$('#testTable').dataTable({ "sPaginationType": "full_numbers", "bJQueryUI": true, "bProcessing": true, "bServerSide": true,
// "sAjaxSource": "/SupportApp/1.txt",
"sAjaxSource": "/SupportApp/Default.aspx/FetchFOIDetails",
"aoColumns": [
{ "mData": "ServiceOrderNo" },
{ "mData": "PcodeDesc" },
{ "mData": "Action" },
{ "mData": "Status" }
],
},
"error": function () { alert('error'); }
});

Server side code is :
[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Json, UseHttpGet = false, XmlSerializeString = true)]
//public static string FetchFOIDetails(string TaskID)
public static string FetchFOIDetails()
{
string str = "{\"aaData\" : [{\"ServiceOrderNo\":\"511121336727696846-3\",\"PcodeDesc\":\"Configure Admin Account in AccMan\",\"Action\":\"Cease\",\"Status\":\"CLOSE\"},{\"ServiceOrderNo\":\"511121336727696862-3\",\"PcodeDesc\":\"Configure Admin Account in AccMan for Toolkit\",\"Action\":\"Cease\",\"Status\":\"CLOSE\"},{\"ServiceOrderNo\":\"511121336727696866-8\",\"PcodeDesc\":\"Configure Admin Account in AccMan for Toolkit Access\",\"Action\":\"Cease\",\"Status\":\"CLOSE\"}]}";
return str;
}


Please help me!!!]]>
Orderby issue http://datatables.net/forums/discussion/15569/orderby-issue Fri, 17 May 2013 09:58:13 +0100 ureshpatel5 15569@/forums/discussions I have implemented DataTables successfully and using (jquery.dataTables.min). My backed script is PHP.I fir a query with order by clause and get the ordered data as per query.But when it displays in DataTable it changes its order.Please let me know best solution for that.

Thank you,
Uresh Patel]]>
Sort broken http://datatables.net/forums/discussion/15663/sort-broken Thu, 23 May 2013 15:52:44 +0100 RemyHouard 15663@/forums/discussions
I have a table with 4 fields of 2 different types I am trying to sort.
There are 3 dates with the format DD/MM/YYYY and the other a check box.

I get an error on table initialisation: Uncaught TypeError: Cannot call method 'fnSetData' of undefined - jquery.dataTables.min.js:29

This is the page where the table is malfunctioning (debug code 'oleguy'):
http://sistema.chezremy.com.br/?site=mm&do=playground&udo=data-tables-test

Any help would be greatly appreciated.]]>
data table is not showing next and previous options when ajax call is made http://datatables.net/forums/discussion/15681/data-table-is-not-showing-next-and-previous-options-when-ajax-call-is-made Fri, 24 May 2013 12:25:36 +0100 manohar 15681@/forums/discussions I tried to load a data table below the row on which it is clicked with ajax call aaData now I am facing a problem...
I am not getting "next,previous" of pagination for the new table created dynamically .
Can any one suggest a solution for this ??]]>
columnFilter Plug-in and fnAddData function Working Order Problem http://datatables.net/forums/discussion/15625/columnfilter-plug-in-and-fnadddata-function-working-order-problem Tue, 21 May 2013 15:49:42 +0100 bahadirarslan 15625@/forums/discussions
{"sEcho":"6","iTotalRecords":73,"iTotalDisplayRecords":73,"aaData":[["5","Test","Test","DonanimTest","HP","HP ProLiant 1","8 ₺","Müsait","6","item_shelve, use, reservation, item_warranty, "],["8","12345","Deneme","Geçici AssetType","Dell","Server 2008 R2","5 ₺","Müsait","","item_shelve, use, reservation, item_warranty, "],["9","1342","Deneme","Geçici AssetType","Dell","Server 2008 R2","5 $","Serviste","","unwarranty, "]}

Also we implemented datatable like below.
 var oTable = $('#datatables').dataTable({
                "sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",
                "sPaginationType": "bootstrap",
                "bServerSide": true,
                "bFilter": true,
                "bLengthChange": false,
                "bSort": true,
                "sAjaxSource": "/AssetItem/AjaxHandler",
                "bProcessing": true,
                "iDisplayLength": 50,
                "bAutoWidth": false,
                "bStateSave": true,
                "sOrdering": true,
                "aLengthMenu": [[5, 10, 25, 50], [5, 10, 25, 50]],
                "aoColumns":
                    [
                        {  
                            "sName": "AssetItemID",
                            "sWidth": "50px"
                        },
                        {  
                            "sName": "ServiceTag"
                        },
                         {
                             "sName": "Name"
                         },
                        {  
                            "sName": "Model.AssetType.Name"
                        },
                        {  
                            "sName": "Brand.Name"
                        },
                        {  
                            "sName": "Model.Name"
                        },
                        {  
                            "sName": "Price"
                        },
                        {  
                            "sName": "CurrentStatus"
                        },                                               
                        {
                            "bSearchable": false,
                            "bSortable": false
                        }
                    ],
                "aoColumnDefs": [
                       {
                           "aTargets": [8],
                           "fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {

                               var actions = '<div class="btn-group">';
                              // some codes for buttons at row level
							  
                               $(nTd).empty();
                               $(nTd).prepend(actions);
                           }
                       }],
                "fnDrawCallback": function (oSettings) {
                    var anControl = $('input', oSettings.aanFeatures.f);
                    $("tbody").highlight(anControl.val());
                }
            }).fnFilterOnReturn().columnFilter({
                aoColumns: [null,
                         { type: "text" },
                         { type: "text" },
                         { type: "select" },
                         { type: "select" },
                         { type: "select" },
                         null,
                 { type: "select" },
                 null
                ]

            });

When we work this code, datatable loads with successfuly but columnFilter select elements were populated with values in specified row. After a few debug sessions i noticed that datatables fnAddData function was called after columnFilter plug-in's initialization.

I had tried to add columnFilter init. to fnDrawCallback but this, after second request columnFilter init was called by infinitive times.

So i couldn't find a way to call columnFilter init after fnAddData function.

You can access debug information from here: http://debug.datatables.net/ubexef]]>
ColVis 1.1.0-dev nightly menu issue http://datatables.net/forums/discussion/15680/colvis-1.1.0-dev-nightly-menu-issue Fri, 24 May 2013 11:46:50 +0100 jliebermann 15680@/forums/discussions
http://live.datatables.net/abiniw/4]]>
save cookie on click http://datatables.net/forums/discussion/15679/save-cookie-on-click Fri, 24 May 2013 11:00:57 +0100 francisbean 15679@/forums/discussions I don't want to save table state onload, bStateSave must be set to false. But when I click on table control (e.g. sort table, select no of records per page etc.) I want to create cookie and save table state, or save it to existing cookie. Is there any way how to achieve this behavior?]]> ColReorder + FixedColumns plugin http://datatables.net/forums/discussion/9863/colreorder-fixedcolumns-plugin Thu, 10 May 2012 10:55:09 +0100 jrevai 9863@/forums/discussions
I just started using Datatables.js. I have a requirement to be able to use ColReorder + FixedColumns plugins on the same table. The bug I think I've found:
- Create a datatable, my datatable has 8 columns but column count doesn't mather
- use ColumnsPlugin plugin, set the first two columns to fixed
...
"oColReorder": {
"iFixedColumns": 2
}
...
- use FixedColumns plugin, set iLeftColumns to 2
....
new FixedColumns(oTable, {
"iLeftColumns": 2,
"iLeftWidth": 264
})
....

Now if you start dragging column header:
- you cannot drag the first two columns that are fixed by the FixedColumns plugin - ok
- you cannot drag elements before/between the first two columns that are fixed by the FixedColumn plugin - ok
- you can drag the first two columns that are NOT fixed by the FixedColumns plugin - ok
Issue: you cannot drag elements to before/between the first two columns NOT fixed by the FixedColumns plugin. For example, if you would like to move the third column NOT fixed by the FixedColumns plugin to between the first and second column, you can't.
You can reproduce this bug on the demo site too:
http://datatables.net/release-datatables/extras/ColReorder/fixedcolumns.html
You cannot move the Browser column to between the index column and the Rendering engine column.

I think the problem is, that there should be to numbers: iFixedColumns: how many columns cannot be moved counted from the left.
iFixedByFixedColumnsPlugin.
...
"oColReorder": {
"iFixedColumns": 2
"iFixedByTheFixedColumnsPlugin": 2
}
...

ColReorder _fnMouseDown:

aoTargets array does not contain the columns that are fixed by the FixedColumns plugin, so those columns shouldn't be spliced.
/* Disallow columns for being reordered by drag and drop, counting left to right */
if (this.s.fixed !== 0)
{
this.s.aoTargets.splice( 0, this.s.fixed - this.s.fixedByFixedColumnsPlugin );
}

ColReorder _fnMouseMove:
when calculating this.s.mouse.toIndex is calculated based on the non fixed table indexes, to make the fnArraySwitch function work properly with, the toIndex should be added up by the this.s.fixedByFixedColumnsPlugin number:

"_fnMouseMove": function ( e )
{
.....

/* Based on the current mouse position, calculate where the insert should go */
var bSet = false;
for ( var i=1, iLen=this.s.aoTargets.length ; i<iLen ; i++ )
{
if ( e.pageX < this.s.aoTargets[i-1].x + ((this.s.aoTargets[i].x-this.s.aoTargets[i-1].x)/2) )
{
this.dom.pointer.style.left = this.s.aoTargets[i-1].x +"px";
this.s.mouse.toIndex = this.s.aoTargets[i-1].to + this.s.fixedByFixedColumnsPlugin;
bSet = true;
break;
}
}

/* The insert element wasn't positioned in the array (less than operator), so we put it at
* the end
*/
if ( !bSet )
{
this.dom.pointer.style.left = this.s.aoTargets[this.s.aoTargets.length-1].x +"px";
this.s.mouse.toIndex = this.s.aoTargets[this.s.aoTargets.length-1].to + this.s.fixedBFixedColumnsPlugin;
}
},

Could you please check if the bug above is still relevant?]]>
&#039;odd&#039; and &#039;even&#039; over rows hidden http://datatables.net/forums/discussion/15520/039odd039-and-039even039-over-rows-hidden Tue, 14 May 2013 10:48:13 +0100 jytest 15520@/forums/discussions
I need your help.

I used datatables with hidden lines.

1.
I can not return the background of the parent row ('odd' or 'even'), to the dependent rows hidden.
I can not change the background property of 'details', based on the values ​​'odd' and 'even'.

2.
I would also have liked the mouseover is disabled for hidden rows.

Can you help me?

		$('#example tbody td img').live('click', function () {
			var nTr = $(this).parents('tr')[0];
			if (oTable.fnIsOpen(nTr)) {
				this.src = "images/recherche/detailouvrir.gif";
				oTable.fnClose( nTr );
			} else {
				this.src = "images/recherche/detailfermer.gif";
				oTable.fnOpen( nTr, fnFormatDetails(oTable, nTr), 'details' );
			}
		} );

	function fnFormatDetails (oTable, nTr) {
		aData = oTable.fnGetData( nTr );
		forme = aData[1];
		image = imgforme[libforme.length-1];
		for (var k=1; k<libforme.length; k++) {
			if (forme == libforme[k]) {
				image = imgforme[k];
				k = libforme.length;
			}
		}
		sOut = "<table cellpadding='5' cellspacing='0' border='0' style='margin:7px 0px 7px 0px; padding-left:0px;'>";
		sOut += "<tr><td rowspan='10' valign='top' align='center' style='width:70px; background-color:#FFFFFF;'>";
		sOut += "<img src='"+image+"' width='63' height='63' alt='recherche diamant'>";
		sOut += "</td>";
		sOut += "<td>Référence :</td><td><a href='recherche10.php?id="+aData[9]+"' class='curseur'>"+aData[9]+"</a></td>";
		sOut += "<td>Certificat :</td><td><a href='certificat00.php?id="+aData[9]+"' class='curseur' target='_blank'>"+aData[13]+"</a></td>";
		sOut += "<td valign='bottom' style='width:85px; text-align:center; padding:0 0 2px 0;' rowspan='10'>";
		sOut += "<a href='boutique.php'>";
		sOut += "<div style='float:left; text-align:right; line-height:11px;' class='ajouterpanier'>Ajouter<br>au Panier</div>";
		sOut += "<div style='float:left; padding-top:1px; padding-left:5px;'><img src='images/boutique/panier.png' alt='ajouter' name='ajouter' width='20' height='20' id='ajouter'></div>";
		sOut += "<div style='clear:both';></div>";
		sOut += "</a>";
		sOut += "</td></tr>";
		sOut += "<tr><td style='width:95px;'>Poids (carats) :</td><td style='width:95px;'>"+aData[2]+"</td>";
		sOut += "<td style='width:120px;'>Profondeur % :</td><td style='width:125px;'>"+aData[14]+"</td></tr>";
		sOut += "<tr><td>Qualité de taille :</td><td>"+aData[1]+"</td>";
		sOut += "<td>Table % :</td><td>"+aData[15]+"</td></tr>";
		sOut += "<tr><td>Symétrie :</td><td>"+aData[10]+"</td>";
		sOut += "<td>Rondiste :</td><td>"+aData[16]+"</td></tr>";
		sOut += "<tr><td>Polissage :</td><td>"+aData[11]+"</td>";
		sOut += "<td>Colette :</td><td>"+aData[17]+"</td></tr>";
		sOut += "<tr><td>Couleur :</td><td>"+aData[3]+"</td>";
		sOut += "<td>Dimensions :</td><td>"+aData[18]+"</td></tr>";
		sOut += "<tr><td>Pureté :</td><td>"+aData[5]+"</td>";
		sOut += "<td>Rapport Long/Larg :</td><td>"+aData[19]+"</td></tr>";
		sOut += "<tr><td>Fluorescence :</td><td>"+aData[12]+"</td>";
		sOut += "<td>Prix/carat :</td><td>"+aData[20]+" €<span class='grisfonce italique'>&nbsp;&nbsp;&nbsp;("+aData[22]+" € TTC)</span></td></tr>";
		sOut += "<tr><td>Délai non serti :</td><td>"+aData[25]+"</td>";
		sOut += "<td>Prix bijouterie</td><td>"+aData[21]+" €<span class='grisfonce italique'>&nbsp;&nbsp;&nbsp;("+aData[23]+" € TTC)</span></td></tr>";
		sOut += "<tr><td>Délai serti :</td><td>"+aData[26]+"</td>";
		sOut += "<td class='bold nuancefonce'>Prix Celinni</td><td class='bold nuancefonce'>"+aData[8]+" €<span class='grisfonce italique'>&nbsp;&nbsp;&nbsp;("+aData[24]+" € TTC)</span></td></tr>";
		sOut += '</table>'; 
		return sOut;
	}

Thanks]]>
Warning: Requires scroller DataTables 1.9.0 or Greater - www .. http://datatables.net/forums/discussion/15678/warning-requires-scroller-datatables-1.9.0-or-greater-www-.. Fri, 24 May 2013 08:47:17 +0100 jytest 15678@/forums/discussions The problem is resolved !]]> Submit of form containing datatable only includes values for controls if previously changed page row http://datatables.net/forums/discussion/15667/submit-of-form-containing-datatable-only-includes-values-for-controls-if-previously-changed-page-row Thu, 23 May 2013 20:36:38 +0100 ChrisBashaw 15667@/forums/discussions
Anyone with ideas about this appreciated.

Issue: When I click the submit button of the form containing the data table none of the values (of controls on the table) are being sent to the server. However, if I first change the pagination by changing the select from 10 to 25 and back to 10 again then the data is being posted successfully to the server.

Assumption: The changing pagination length must be looping thru the rows and setting some state flag or similar that somehow triggers the inclusion of the control values during the submit.

Tech:
Data Tables Version 1.9.4, browser:IE10, Code:C#-MVC-Razor-VisualStudio2012-HTMLHelpers, Ajax

DataTable Creation:

$('#UserNoted').dataTable({
"bPaginate": true,
"sPaginationType": "full_numbers",
"bLengthChange": true,
"sDom": '<"H"<"tools">lfr>t<"F"ip>',
bAutoWidth": false,
"bSort": true,
"bJQueryUI": true,
"aoColumns": [
{ "sSortDataType": "dom-checkbox" },
{ "sClass":"myhidedpass", "sSortDataType": "dom-hidden", "bSearchable": false },
null,
null,
null,
]});
$("div.tools").html('<label id="SelectAllNone";"><input id="SelectAllNoneC" type="checkbox" style="width: 1em;"/>Select All/None</label>');


HTML Table Creation:

table border="0" class="display" id="UserNoted">
<thead>
<tr>
<th>Select</th>
<th>HiddenSelectVal</th>
<th>Name</th>
<th>Email</th>
<th>Role(s)</th>
</tr>
</thead>
<tbody>
@for (Int32 i = 0; i < Model.NoteUsersList.Count; i = i + 1)
{
<tr>
<td>
@Html.CheckBoxFor(x => x.NoteUsersList[i].Checked)
</td>
<td>
@Html.HiddenFor(x => x.NoteUsersList[i].userrole)
@Html.HiddenFor(x => x.NoteUsersList[i].displayname)
@Html.HiddenFor(x => x.NoteUsersList[i].email)
@Html.HiddenFor(x => x.NoteUsersList[i].usersid)

</td>
<td>@Model.NoteUsersList[i].displayname</td>
<td>@Model.NoteUsersList[i].email</td>
<td>@Model.NoteUsersList[i].userrole</td>
</tr>
}
</tbody>
</table>

HTML Form Creation:

@using (Ajax.BeginForm("EditUserPrefs",new { id = Model.editee_userid },new AjaxOptions() { HttpMethod = "POST",UpdateTargetId = "ui-tabs-4",InsertionMode = InsertionMode.Replace }))
{
@Html.AntiForgeryToken()
@Html.ValidationSummary(true,null,new { @class = "ValErrorMsg" })

<Table is here>

<input type="submit" class="button blue" value="Save" />
} @* end of @using *@]]>
Too slow loading (5 seconds) http://datatables.net/forums/discussion/15658/too-slow-loading-5-seconds Thu, 23 May 2013 10:05:29 +0100 jytest 15658@/forums/discussions
I have my datatables that is taking too long to load (5 seconds)
I am using the server_processing.
Can you help me?
In advance, thank you.
Here is a link http://www.celinni.com/creaprint/recherche00.php
(Too see, please deplace one slider control of the first blank block)]]>
sum columns within a group http://datatables.net/forums/discussion/15677/sum-columns-within-a-group Fri, 24 May 2013 07:28:01 +0100 matt_riley 15677@/forums/discussions
I have grouping working. Now I want to sum the columns for each group and display the total in the group header. Here's a jsfiddle of it:

http://jsfiddle.net/RgKPZ/123/

The only problem is that the columns I want to sum aren't being added together. The values are being displayed, but like a string instead of adding together like numbers. Also, not all of the values are even being displayed as a string - there are repeats going on. I tried converting using Number() and parseInt() but no luck. I'm trying to put this into the callback function (like the grouping function) so that the values will be summed after each table filter, too.

I'm sure I just have a variable wrong or in the wrong place or something, but I just can't figure it out. Frustratingly close! :-(

TIA,
Matt]]>
Exporting Not Working http://datatables.net/forums/discussion/15660/exporting-not-working Thu, 23 May 2013 12:30:55 +0100 ureshpatel5 15660@/forums/discussions I have implemented the data table and trying to put the export buttons on the page.iput all the code mentioned in forums and examples.

<table id='example' class="table table-striped table-bordered bootstrap-datatable datatable">
..
..
..
<table>

<script src='js/jquery.dataTables.min.js'></script>	
<script src="js/TableTools.min.js"></script>
<script>
$(document).ready( function () {
$('#example').dataTable( {
	 "bRetrieve" : true,
         "sDom": '<"H"Tfr>t<"F"ip>',
            "oTableTools": {
                "sSwfPath": "http://datatables.net/release-datatables/extras/TableTools/media/swf/copy_csv_xls_pdf.swf",
                "aButtons": [
                    {
                    "sExtends": "print",
                    "sButtonText": "Print",
                    "bShowAll": true,
                    "sMessage": "Record Data",
                    },
                    {
                    "sExtends": "pdf",
                    "sButtonText": "Export to PDF"
                    },
                    {
                    "sExtends":"xls",
                    "sButtonText": "Export for Excel"
                    }
                ]}  
				});
			} );
</script>
]]>
colspan sorting problem - last column not sortable after adding a column http://datatables.net/forums/discussion/15675/colspan-sorting-problem-last-column-not-sortable-after-adding-a-column Fri, 24 May 2013 04:32:17 +0100 machinarium 15675@/forums/discussions I don't think it's a bug of datatable. But I still hope to get a workaround for this weird problem. Here is the thing.
My table definition is
<table id="myTable" class="table table-striped table-bordered" border="0">
                        <thead>
                            <tr>
                                <th rowspan="2" id="th1">th1</th>
                                <th rowspan="2">th2</th>
                                <th rowspan="2">th3</th>
                                <th rowspan="2">th4</th>
                                <th rowspan="2">th5</th>
                                <th colspan="5">th6</th>
                            </tr>
                            <tr>
                                <th>th6_1</th>
                                <th>th6_2</th>
                                <th>th6_3</th>
                                <th>th6_4</th>
                                <th>th6_5</th>
                            </tr>
                        </thead>
                        <tbody>                        
                        </tbody>
                    </table>
In the javascript code, i added a column dynamically to be the first column of the table, including the header, let's say
<th rowspan="2">new_th1</th>
And don't worry, I also added the corresponding data to that newly added column, something like this
<td> little foxy thing</td>
Then the last column, i.e <th>th6_5</th> is not sortable, I mean, you can not click the header of that column to do a sortion, event it's not clickable. So any thoughts how to figure it out?

Thanks]]>
Row details not showing past first screen http://datatables.net/forums/discussion/15674/row-details-not-showing-past-first-screen Fri, 24 May 2013 01:18:59 +0100 EFreese 15674@/forums/discussions
Debug code: ikexek
http://live.datatables.net/uceqas/3]]>
How do I re-index search? http://datatables.net/forums/discussion/15673/how-do-i-re-index-search Fri, 24 May 2013 01:13:58 +0100 flowerchild22 15673@/forums/discussions How to cancel a sort event after it is fired? http://datatables.net/forums/discussion/15672/how-to-cancel-a-sort-event-after-it-is-fired Thu, 23 May 2013 22:40:36 +0100 tpc 15672@/forums/discussions
I have a checkbox column in my table with a "check-all" checkbox in the header. When the checkbox in the header is clicked I want to prevent the sorting from occurring however if any other portion of the header is click I want it to sort. Here's what I've come up with so far but I am not sure how to cancel the sort.

Click event of the "check-all" checkbox

     var checkallClicked = false;
    $('#check-all').click(function() {
        checkallClicked = true;
        ...
    });

Click/sort event of the header

    $('.check-all-header').click(function(){
        if (checkallClicked) {
            checkallClicked = false;
            return false;
        }
    });
]]>
Table &#039;overlay&#039; for read-only behavior http://datatables.net/forums/discussion/12067/table-039overlay039-for-read-only-behavior Wed, 03 Oct 2012 20:08:38 +0100 Jeach 12067@/forums/discussions
I've got a particular case where we show our data most of the time, but under some specific business rule, I must prevent the user from making any changes to table. I currently do this by adding a large gray overlay with 50% transparency over my panel. This works, but since the overlay is also over the header and footer, it does not allow the users to sort columns, filter data or more importantly navigate the paginated table (ie: next, prev, etc).

It would be much better if internally, data-tables would apply such overlay only on the view-pane of the data (optionally header). This way, the entire table content would become read-only, but still allow next, previous navigation.

I simulate the overlay by putting a div element spanning the entire size of my panel and setting its z-index to a higher level than it's parent. I'm sure this type of feature would easily be doable within the actual table itself and providing an API call for it.

Note: My tables are updated every second with new rows and row removals (quite dynamic) so the last thing I want to do is start to set a read-only state on a per-row basis (like I've seen so many examples of).

Feedback is welcome!

Thanks in advance,

Jeach!]]>
Support for Windows 8 Store applications in Javascript http://datatables.net/forums/discussion/15577/support-for-windows-8-store-applications-in-javascript Fri, 17 May 2013 14:23:48 +0100 hotstack 15577@/forums/discussions
$('#outputtable').dataTable({
                                "aaData": arrayData,
                                "aoColumns": [
                                    { "sTitle": "ID" },
                                    { "sTitle": "Date" },
                                    { "sTitle": "Type" },
                                    { "sTitle": "SubType" },
                                    { "sTitle": "Value" },
                                    { "sTitle": "Notes" }
                                ]
                            });

The error thrown is:
HTML1701: Unable to add dynamic content 

A script attempted to inject dynamic content, or elements previously modified dynamically, that might be unsafe. For example, using the innerHTML property to add script or malformed HTML will generate this exception. Use the toStaticHTML method to filter dynamic content, or explicitly create elements and attributes with a method such as createElement.  

For more information, see http://go.microsoft.com/fwlink/?LinkID=247104.

I really like the product and thought it would be better than me trying to roll my own... it may also be impossible or more trouble than it is worth though.


This was fixed a few revs back in JQuery though, so maybe it could also be done here? If I was a bit better at this I would give it a shot myself, but I am still pretty n00bish.

Thanks]]>
Pagination current page not disabled http://datatables.net/forums/discussion/15676/pagination-current-page-not-disabled Fri, 24 May 2013 06:42:39 +0100 chavdamalde 15676@/forums/discussions if i have in page number "2" and then click on this button refresh this page.
i have display 100 record per page that's why it very load from server

but, Previous and next button is disbled.

Thanks!]]>
How to use datatables pagination but with the same style as cakephp&#039;s pagination ? http://datatables.net/forums/discussion/15668/how-to-use-datatables-pagination-but-with-the-same-style-as-cakephp039s-pagination- Thu, 23 May 2013 21:26:38 +0100 salouri 15668@/forums/discussions BUT!
I also want the pagination to look like the rest of the website's pagination which is cakephp's(2.0) !
I tried to track what classes cakephp paginator is using from cakephp's cake.generic.css, but when I try to use those classes in oStdClasses of full_numbers method (because that's the pagination type I'm using) they don't apply or things get messed up. I know a little css but I'm not really an expert -- yet! ;) --
Any help, guidance, or ideas would be appreciated...
Thank you

Salouri]]>
Changing data source http://datatables.net/forums/discussion/15670/changing-data-source Thu, 23 May 2013 22:17:52 +0100 SxChoc 15670@/forums/discussions
I wonder if someone could help me out please. I've been constructing a datatable for about three weeks (this is my first time using it so it was a steep learning curve!!).

In order to make development easier everything is being handled on the client side and the data is being pulled from a locally held static text file. My clients have now signed off the design and the functionality so I now need to switch the datasource from this static text file to pulling data SQL data through an asp.net solution. Could anybody advise me on the easiest method for achieving this please. All of the filtering, sorting, etc. can still be processed on the client I just need to pull in the data.

Thanks in advance,
Craig]]>
TableTools &quot;Select/Deselect all&quot; buttons are incompatible with &#039;&quot;bDeferRender&quot;: true&#039; http://datatables.net/forums/discussion/15671/tabletools-selectdeselect-all-buttons-are-incompatible-with-039bdeferrender-true039 Thu, 23 May 2013 22:28:12 +0100 thargenediad 15671@/forums/discussions http://www.datatables.net/forums/discussion/8862/problem-with-bdeferrender-and-jquery-selector-on-table/p1)...

deferred rendering is most certainly going to upset any selector, including the $ API method. The nodes haven't yet been created, so they can't possibly be selected - which is the whole point of how deferred rendering gets its speed boost :-).

So deferred rendering + the ability to select all rows are mutually incompatible.

I didn't find this documented in the TableTools nor the DataTables "bDeferRender" documentation, however. It may be a good idea to update the documentation, so other users don't end up as confused as I was. ;)

Thank you for this superb tool, Allan.

Anton]]>
Build a File Manager with Folders Using Datatables http://datatables.net/forums/discussion/15669/build-a-file-manager-with-folders-using-datatables Thu, 23 May 2013 21:55:01 +0100 dreamten 15669@/forums/discussions http://c.drm.io/image/2d0F0Y0f3N31).

It works great, but the file list is growing and I was wondering if it's possible to turn the groups into folders, so they could be clicked on and expanded, with the ability to go up a directory.

Has anyone done anything like this or are there any plugins that have this functionality?

Any advice is appreciated.

Thanks,
Philip]]>
Chrome render speed issue http://datatables.net/forums/discussion/15651/chrome-render-speed-issue Wed, 22 May 2013 22:32:16 +0100 nicholas_randal 15651@/forums/discussions
No data for the table is changing.

When it's fast:
_fnCreateTr is called fewer times and the timeline shows multiple calls as nearly instantaneous.

When it's slow:
_fnCreateTr is called more times than the fast scenario and the timeline shows a stagger because of the slowness.]]>
Custom sorting with a column that contains date and string- Looks like its possible but not sure how http://datatables.net/forums/discussion/15666/custom-sorting-with-a-column-that-contains-date-and-string-looks-like-its-possible-but-not-sure-how Thu, 23 May 2013 18:22:11 +0100 haripraghash 15666@/forums/discussions Memory issue while using event for row selection http://datatables.net/forums/discussion/15648/memory-issue-while-using-event-for-row-selection Wed, 22 May 2013 17:18:09 +0100 sdinesh21 15648@/forums/discussions
I am using Data Tables 1.9.4 and notice memory issue with my application while using events for multi row selection and polling for server data at specific intervals (using setInterval and fnDraw(false)). During every poll interval, when I highlight a row in the table, the memory usage goes up and never comes down until the page is reloaded. This is very high in IE8/9 and Firefox browsers.

Is there an issue with attaching events in the row selection function? Is there a better way to achieve that?

Here is the DataTables live link for the code...
http://live.datatables.net/ulemud/2/edit#javascript,html]]>