Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all 79625 articles
Browse latest View live

How to Add Space Between Length Menu and Table Tools Button in DOM of DataTable?

$
0
0
I am having trouble formatting the header of my datatable the way I would like. I have the length menu and table tools button right next to each other and I would like there to be a space in between them. The only way I've found to solve my problem is to add margin-left: 1em; in the div.DTTT_container class. I cannot do this because I have several datatables and not all need to look like the one I'm working on. Below is my javascript for setting up the datatable.
TableTools.BUTTONS.download = {
        "sAction": "text",
        "sTag": "default",
        "sFieldBoundary": "",
        "sFieldSeperator": "\t",
        "sNewLine": "<br>",
        "sToolTip": "",
        "sButtonClass": "DTTT_button_text",
        "sButtonClassHover": "DTTT_button_text_hover",
        "sButtonText": "Download",
        "mColumns": "all",
        "bHeader": true,
        "bFooter": true,
        "sDiv": "",
        "fnMouseover": null,
        "fnMouseout": null,
        "fnClick": function (nButton, oConfig) {
            var oParams = this.s.dt.oApi._fnAjaxParameters(this.s.dt);
            var iframe = document.createElement('iframe');
            iframe.style.height = "0px";
            iframe.style.width = "0px";
            //Add the params
            AddExternalFiltersFPF(oParams, true);
            //iframe.src = oConfig.sUrl + "?" + $.param(oParams);
            //document.body.appendChild(iframe);
                
            $.ajax({
                url: oConfig.sUrl + "?" + $.param(oParams),
                type: 'GET',
                contentType: 'text/csv',
                data: 'text/csv',
                success: function (data) {
                    alert('Hi');
                    iframe.src = data;
                }
            });
            document.body.appendChild(iframe);
        },
        "fnSelect": null,
        "fnComplete": null,
        "fnInit": null
    };
//Add External Filters for datatables serverside post
function AddExternalFiltersFPF(params, isExport){
    params.push({ "name": "Filter0", "value": $('#ctl00_MainContent_HouseholdId').val() });
    if (isExport) {
        params.push({ "name": "IsExport", "value": isExport });
    }
}
$(document).ready(function () {
    var oTable;

    oTable = $('#FPFHistory').dataTable({
        "bJQueryUI": true,//use existing jquery ui theme
        "iDisplayLength": 10,//default to 10 rows
        "bServerSide": true, //server side processing
        "sAjaxSource": "/api/Members/GetFPFHistory",//server side processing location
        "fnServerData": function (sSource, aoData, fnCallback) {
            /* Add some extra data to the sender */
            AddExternalFiltersFPF(aoData, false);
            $.getJSON(sSource, aoData, function (json) {
                /* Do whatever additional processing you want on the callback, then tell DataTables */
                fnCallback(json);
            });
        },
        "sScrollX": "100%",//allow for screen size change
        "bProcessing": true,//busy indicator
        "aoColumns": [
                        { "sName": "sponsor" },
                        { "sName": "promotion_name_short" },
                        { "sName": "eff_start_date" },
                        { "sName": "issued_dol" },
                        { "sName": "redeemed_dol" },
                        { "sName": "expired_dol" },
                        { "sName": "eff_end_date" }
        ],
        "oLanguage": {
            "sLengthMenu": "Results Per Page: _MENU_"
        },
        "sDom": '<"H"lTfr>t<"F"ip>',//used for download/export
        "oTableTools": {//used for download/export
            "sSwfPath": "/Style/media/swf/copy_csv_xls.swf",
            "aButtons": [{ "sExtends": "download", "sButtonText": "Export", "sUrl": "/api/Members/GetFPFHistoryExport" }]

        }
    });
});
Please let me know if you need any more code, and any help would be greatly appreciated! I've been struggling on this for quite awhile...

TableTools - Exporting Buttons not working, Print Works. See Details Inside...

$
0
0
So I've been crawling these boards and a bunch of blogs and even stackoverflow trying to find a solution to this issue.

I have TableTools in my DataTable. This is my Tables' init...
$("#resultTable").dataTable({
	"bFilter": true,
	"bJQueryUI": true,
	"bPaginate": true,
	"bProcessing": true,
	"iDisplayLength" : 20,
	"sAjaxSource": "scripts/PHP/responses/" + file,
	"sDom": 'T<"clear">lfrtip',
	"oTableTools": {
		"sSwfPath": "scripts/JS/DataTables-1.9.4/extras/TableTools/media/swf/copy_csv_xls_pdf.swf"
	},
	"sPaginationType": "full_numbers",
	"aoColumns": dtCols
});
var ttInstances = TableTools.fnGetMasters();
for (var j in ttInstances) {
	ttInstances[j].fnResizeButtons();
}

I'm using the normal CSS/JS files for TableTools/ZeroClipboard/DataTables.

The toolbar loads, but it's not quite in the right spot. Copying the init data of 'T<"clear">lfrtip' I would expect (like the sample) that this would go above the search bar, my toolbar is off to the right of the search bar. NONE of the buttons 'hover' EXCEPT for the Print button. All of the buttons are slightly overlapped when bJQueryUI is true, if I set this to false the buttons look perfect, but still have no use of any button but Print.

If I omit the sSwfPath it also loads just fine, but buttons do not work.

I cannot easily post a working example, however if this becomes critical I'll arrange something.

This is not a local 'file://' issue. This is not a flash error. There are no JS errors in my console. I have tried everything from setting the TableTools.DEFAULTS fixes, to fnResizeButtons(). Any assistance you can provide will be helpful. Thank you!

Other notes:
- This is loading from an ajax source
- The table lives in a dialog()
- Table has class of 'display'
- Have tried using JUI/themeroller CSS's. I have tried the latest TableTools and also TableTools that comes with DT.

Thanks!!

Datatable column filter plugin applied on a ASP.NET GridView

$
0
0
Hello,

First, I would like to thank you guys for the wonderful datatable column filter plugin. I was able to apply the plugin on an ASP.NET Gridview control. I have sorting, filtering, paging features on the datatable and the datatable itself is working as expected. Now, I have added one more column to the datatable which has checkboxes for each row and a checkbox in the header for that row. And I had added a few javascript code such that when the header checkbox is clicked, all the checkboxes in all the rows on that page of the gridview (datatable) would get checked, which is also working with exception of one issue that I am running into.

When the datatable displays the data, when I click on Page 2 and check the checkbox in the header, its checking all the checkboxes in all the rows on Page 2 but its bringing back the users to Page 1. I mean its checking the items in Page 2 but displays Page 1. I tried to use fnStandingRedraw() function but didnt have any success yet.

Below mentioned is the code:

$(document).ready(function() {

function fixGridView(tableEl) {
var jTbl = $(tableEl);

if (jTbl.find("tbody>tr>th").length > 0) {
jTbl.find("tbody").before("<thead><tr></tr><tr></tr></thead>");
jTbl.find("thead tr").append(jTbl.find("th"));
jTbl.find("tbody tr:first").remove();
}
}

fixGridView($("#gv_Prov_To_Add"));
//$("#gv_Prov_To_Add").GridviewFix({ header: "headerStyle", row: "rowStyle", footer: "footerStyle" }).dataTable().columnFilter();
$("#gv_Prov_To_Add").GridviewFix({ header: "headerStyle", row: "rowStyle", footer: "footerStyle" }).dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"bAutoWidth": false,
"bStateSave": true
}).columnFilter({
aoColumns: [null,
{ type: "text" },
{ type: "text" },
{ type: "text" },
{ type: "text" },
{ type: "text" },
{ type: "text" },
{ type: "text" },
{ type: "text" },
{ type: "text" },
{ type: "text" },
{ type: "text" },
// { type: "text" },
{type: "text" },
{ type: "text" },
{ type: "text" }
]

});

$.fn.dataTableExt.oApi.fnStandingRedraw = function(oSettings) {
if (oSettings.oFeatures.bServerSide === false) {
var before = oSettings._iDisplayStart;

oSettings.oApi._fnReDraw(oSettings);

// iDisplayStart has been reset to zero - so lets change it back
oSettings._iDisplayStart = before;
oSettings.oApi._fnCalculateEnd(oSettings);
}

// draw the 'current' page
oSettings.oApi._fnDraw(oSettings);
};

});

These are the js functions:

function HeaderClick(CheckBox)
{
var oTable = $("#gv_Prov_To_Add").dataTable();
oTable.fnStandingRedraw();

//Get target base & child control.
var TargetBaseControl = document.getElementById('<%= this.gv_Prov_To_Add.ClientID %>');
var TargetChildControl = "ChkBox_Prov_To_Add";

//Get all the control of the type INPUT in the base control.
var Inputs = TargetBaseControl.getElementsByTagName("input");

//Checked/Unchecked all the checkBoxes in side the GridView.
for(var n = 0; n < Inputs.length; ++n)
if(Inputs[n].type == 'checkbox' && Inputs[n].id.indexOf(TargetChildControl,0) >= 0)
Inputs[n].checked = CheckBox.checked;
//Reset Counter
Counter = CheckBox.checked ? TotalChkBx : 0;
}

function ChildClick(CheckBox, HCheckBox)
{
//get target base & child control.
var HeaderCheckBox = document.getElementById(HCheckBox);

//Modifiy Counter;
if(CheckBox.checked && Counter < TotalChkBx)
Counter++;
else if(Counter > 0)
Counter--;

//Change state of the header CheckBox.
if(Counter < TotalChkBx)
HeaderCheckBox.checked = false;
else if(Counter == TotalChkBx)
HeaderCheckBox.checked = true;
}

And its a ASP.NET GridView with a template field as mentioned below:

<asp:TemplateField HeaderStyle-BackColor="#edf6fc" HeaderStyle-Width="30px" ItemStyle-Width="30px" ControlStyle-Width="30px">
<ItemTemplate>
<input ID="ChkBox_Prov_To_Add" runat="server" style="border: solid 0px Black;
height: 8px;" type="checkbox" />
</ItemTemplate>
<HeaderTemplate>
<asp:CheckBox ID="chkBxHeader" onclick="javascript:HeaderClick(this);" runat="server" />
</HeaderTemplate>
</asp:TemplateField>

Can you please let me know what I am missing ?

DataTables Extra Scroller

$
0
0
Whenever a user selects a different option, I am refreshing the Data Source property "aaData" and using "bDestroy": true. However, when the table is reconstructed, there is no table header (column names). Does anyone know how I can get this to work?

I'm using the below code (aoColumns is not working)
var oTable = $('#example').dataTable({
"aaData": source,
"bJQueryUI": true,
"aaSorting": [],
"aoColumns": [
{ "sTitle": "ID" },
{ "sTitle": "Test" },
{ "sTitle": "Type" },
{ "sTitle": "Request Date" }
],
"bDestroy": true,
"sScrollY": "380px",
"sDom": 'frtiS',
"bDeferRender": true,
"fnRowCallback": function(nRow, aData, iDisplayIndex, iDisplayIndexFull) {
$(nRow).attr('id', "row-" + aData[0]);
return nRow;
}
});
Thanks.

some rows to be row header for group

$
0
0
hi to all,
im using datatables 1.8..

actually rowgroup based on first column..

but i want row to be grouped to some rows..

any help..

Editable add-in is not compatible with ColVis plugin

$
0
0
Allan,

Column editable is not working when i use colvis to hide the column. Same issue i faced for column filter with colvis. But i fixed that issue by adding" bUseColVis: true" in column filter. Is there any solution to solve this issue??? I want to integrate editable column, colvis and column filter widget.

User Selectable Rows and Submit form for Comparing Two selected rows.

$
0
0
I am having a heck of a time getting this to work.

I've been trying to modify and use a combination of the user-selectable rows (http://datatables.net/release-datatables/examples/api/select_row.html) and datatables form elements (http://datatables.net/release-datatables/examples/api/form.html) example code.

What I want to do is limit row selection to two rows and then load a page with more info on each to compare them in detail (I guess by clicking a form button to submit after selecting two rows).

I've been teaching myself PHP and Javascript, and slowly starting to look at JQUERY but I just don't quite get it yet, so modifying anything like that is very hard for me.

I've basically got to the point of throwing random stuff together and seeing what happens in my browser when I load the page. I don't quite understand this JQUERY chaining stuff, any insight on how I can start going in the right direction with this?

var asInitVals = new Array();
var oTable;

function fnGetSelected( oTableLocal )
{
    return oTableLocal.$('tr.row_selected');
}

$(document).ready(function()
{
     $('#item-table tr').click( function() {
        $(this).toggleClass('row_selected');
    } );
	
	oTable = $('#item-table').dataTable(
	{
		"aoColumnDefs": [ { "bSortable": false, "aTargets": [ 0 ] } ],
		"aaSorting": [[ 1, "desc" ]],
		"bSortCellsTop": true,
		"asStripeClasses": [],
		"sPaginationType": "full_numbers",
		
		"oLanguage":
		{
			"sInfo": "Showing _START_ to _END_ (of _TOTAL_)",
			"sInfoEmpty": "No entries to show",
			"sInfoFiltered": " from _MAX_ records"
		},
		
		"iDisplayLength": 10,
	} );
	
	$("thead input").keyup( function () {
        /* Filter on the column (the index) of this element */
        oTable.fnFilter( this.value, $("thead input").index(this) );
    } );
	
	$('#form').submit( function() {
        var sData = oTable.fnGetSelected( oTableLocal ).serialize();
		// var sData = oTable.$('input').serialize();
        alert( "The following data would have been submitted to the server: \n\n"+sData );
        return false;
    } );
	
} );

And as far as limiting the selection to two rows:
I want the oldest selected row to de-select if they click a third row so that there is always only 2 rows selected.

edit: I just spent an hour trying to limit to two selections with no luck. All I do is break the datatable plugin...

Datatable causes container to float when page is rendered but fixes itself with screen re-sizing !

$
0
0
I've been battling with this problem for a while now. The width of my jQuery DataTable is only displayed correctly after I resize the screen. Watch this screencast to see what happens:

http://screencast.com/t/QY2ZgZp4By

Here's the scenario:

Using ASP.NET I import data from CSV file and dynamically build a table. The file has a variable number of columns - so it can be any number of columns.

After I produce the table I call the DataTable script to format the table as show below:

Private Sub CreateInputDataTable()

Dim input As BA.Input = CurrentInput
Dim inputLines As BA.InputLines = input.Lines
Dim columnHeaders As BA.InputColumnHeaders = input.ColumnHeaders
'Dim loadDefItems As BA.InputLoadDefinitionItems = CurrentInputLoadDefinition.DefinitionItems

phInputLoadData.Controls.Clear()

Dim tblRows As Integer = inputLines.Count
Dim tblCols As Integer = 19 ' Hard coded col number to create sample
' Create a Table and set its properties
Dim tbl As Table = New Table()
' Add the table to the placeholder control

tbl.ID = "tblInputLoad"
tbl.Attributes.Add("runat", "server")
tbl.Width = Unit.Percentage(100)

phInputLoadData.Controls.Add(tbl)

'Add dropdown boxes to row headers
Dim thr As TableHeaderRow = New TableHeaderRow()
thr.TableSection = TableRowSection.TableHeader

For i As Integer = 0 To tblCols - 1
Dim cboColName As DropDownList = New DropDownList()

Dim thc As TableHeaderCell = New TableHeaderCell()
thc.Width = Unit.Pixel(80)

thc.CssClass = "input-def-col-header"

With cboColName
.ID = "cboColName_" + i.ToString()
.Width = Unit.Pixel(80)

AddHandler cboColName.PreRender, AddressOf cboColName_PreRender

End With

'Add control to the table cell
thc.Controls.Add(cboColName)

'Add table cell to the TableRow
thr.Cells.Add(thc)
Next

tbl.Rows.Add(thr)

' Add column headers
thr = New TableHeaderRow()
thr.TableSection = TableRowSection.TableHeader

For i As Integer = 0 To tblCols - 1
Dim thc As TableHeaderCell = New TableHeaderCell()
thc.Width = Unit.Pixel(80)
Dim txtBox As TextBox = New TextBox()

txtBox.CssClass = "input-file-col-header"
txtBox.Text = columnHeaders(i).ColumnHeaderName
txtBox.Width = Unit.Pixel(80)
' Add the control to the TableCell
thc.Controls.Add(txtBox)
' Add the TableCell to the TableRow
thr.Cells.Add(thc)
Next

tbl.Rows.Add(thr)

Dim tr As TableRow = New TableRow
tr.TableSection = TableRowSection.TableBody

' Now iterate through input lines and add controls
For i As Integer = 0 To tblRows - 1
tr = New TableRow()

For j As Integer = 0 To tblCols - 1
Dim tc As TableCell = New TableCell()
tc.Width = Unit.Pixel(80)
Dim txtBox As TextBox = New TextBox()
txtBox.Width = Unit.Pixel(80)
txtBox.Text = inputLines(i).Items(j).Value

If inputLines(i).Items(j).ItemType <> BudgetAllocations.InputDefinitionColumnType.Data Then
txtBox.CssClass = "input-file-frozen-left-cols"
End If

' Add the control to the TableCell
tc.Controls.Add(txtBox)
' Add the TableCell to the TableRow
tr.Cells.Add(tc)
Next j

' Add the TableRow to the Table
tbl.Rows.Add(tr)
Next i

ClientScript.RegisterClientScriptBlock(Me.GetType(), "FormatInputTable", _
"$(document).ready(function() {FormatInputTable();});", True)

End Sub

The table is inserted into a ASP.NET placeholder as show below:

<div id="div-input-load-cont" style="float: left; width: 70%; margin-top: 5px; height: 350px">
<asp:PlaceHolder ID="phInputLoadData" runat="server" EnableViewState="False"></asp:PlaceHolder>
</div>

And here is the script to format the table:

function FormatInputTable() {
var oTable = $('#ctl00_MainContent_tblInputLoad').dataTable({
"bJQueryUI": false,
"sScrollY": "300px",
"sScrollX": "100%",
"sScrollXInner": "50%",
"bScrollCollapse": true,
"bPaginate": false,
"bRetrieve": false,
"bFilter": false,
"bAutoWidth": false
});
new FixedColumns(oTable, {
"iLeftColumns": 2,
"iLeftWidth": 170,
"bAutoWidth": false
});
};

My problem: when the HTML page is rendered my entire right-hand-side container floats to the left due to the length of the table. In this demo I set the number of columns to 19. However, when I minimize the screen everything is displayed correctly the way it is meant to be.

My question: what do I do to make sure the reformatted datatable is shown correctly, instead of floating left? Any help would be greatly appreciated.

Column width

$
0
0
Hi, i have following code:
				$('#optionsTable').dataTable( {
					"aoColumns": [
						{ "sWidth": "25%" },
						{ "sWidth": "70%" },
						{ "sWidth": "5%", "sClass": "center", "bSortable": false },
					],
					"aaSorting": [[0, 'asc']],
					"bJQueryUI": true,
					"bAutoWidth": false
						
					},
					"sPaginationType": "full_numbers"
				} );
Everything works fine except column width - they have auto width. What should i do to make fixed width?

Tabs with tables

$
0
0
I have 4 Bootstrap tabs with one table each.

the data on each table is fetched server side.

My issue is whenever the page with the tabs load, the 4 tables call their respective urls all at the same time.

is there any way to simply let the "active" table be the only one who can query for its contents?

DataTable Fixed Column doesn't show scrollable area when using themes

Access JSON object returned from server-side processing

$
0
0
Hi,

I would like to access JSON object returned by DataTable from PHP script. Right now I can add some data to the JSON (in PHP) like this
$output = array(
"table_header"=>$header, 
"sEcho" => intval($_GET['sEcho']),
"iTotalRecords" => 0,
"iTotalDisplayRecords" => 0,
"aaData" => array()
);

echo json_encode( $output );
and DataTables process it just fine (despite the additional item), but I can't find a way to read the returned object in javascript. Any idea how should I proceed to read the value of 'table_header' from the above code sample? Thank you.

control editor input format

$
0
0
Hi All,

I am new to editor, here is a simple question, how to control the text input max length, I can not seem to find a document to mention this.

What I want is:
                   {
	                "label": "Code:",
	                "name": "code",
                        "type": "text",
                        "maxLength": "4"
	            }
is there a maxlength attribute available?

Thanks a lot.

Tiger

table tools crashes for more records

$
0
0
Hi All,
First I would like to say thanq to the team and special to Allan,Hey its great work done.
I am using jquery datatable with table tools it works fabulous but the problem is when user fetches records some time it goes more then 20k.
But for these
many records the table tools does't work browser says page crashed
.
Please suggest any solution.

Thanks

How can I add to the filter function?

$
0
0
Hi there.

I am using datatables to present my data to the users but I am currently stuck.

What I am trying to achieve is this:

When the user presses the custom added search button the results presented are a mixture of my results and the normal results from the datatables.

This is my code related to this:


var bServerSearch = true;
var aServerSearchData = new Array();
var iServerSearchCompareColumn = 0;
var bSearchingServerSide = false;
var bFilterWhenServerSideFinished = false;
var oTable;
var iSearchWait = 0;
var iSearchWaitInterval;

$.fn.dataTableExt.afnFiltering.push(
    function( oSettings, aData, iDataIndex ) {
        if (bServerSearch) {
            for (var i = 0; i < aServerSearchData.length; i++) {
                if (aServerSearchData[i] == aData[iServerSearchCompareColumn]) return true;
            }
        }
    }
);

$(document).ready(function(){
    oTable = $('#table').dataTable({
        "aoColumns": [
                {"sWidth": "85px"},
                {"sWidth": "139px"},
                {"sType": "dato-norsk", "sWidth": "99px"},
                {"sWidth": "381px"},
                {"sWidth": "105px"},
                {"sWidth": "129px"},
        ],
        "sDom":'<"top"fp>rt<"bottom"p><"clear">',
        "sPaginationType": "full_numbers",
        "iDisplayLength": 20,
    });
    $(".first.paginate_button, .last.paginate_button").remove();
    $('.dataTables_filter input').unbind('keypress keyup').bind('keypress keyup', function(e){
        var item = $(this);

        iSearchWait = 0;
        if(!iSearchWaitInterval) iSearchWaitInterval = setInterval(function(){
            if(iSearchWait>=3){
                clearInterval(iSearchWaitInterval);
                iSearchWaitInterval = '';
                sSearchTerm = $(item).val();
                aServerSearchData = new Array();
                bSearchingServerSide = true;
                $.ajax({
                    url:'search.ajax.php',
                    dataType:'json',
                    data: {'term':sSearchTerm},
                    success: function(data) {
                        aServerSearchData = data;
                        if (bFilterWhenServerSideFinished) oTable.fnFilter(sSearchTerm);
                        bSearchingServerSide = false;
                        bFilterWhenServerSideFinished = false;
                    }
                });
                iSearchWait = 0;
            }
            iSearchWait++;
        },100);
    });                    
    $('<div />').html('<ul><li class="smallButton smallButtonGreyW pull-2h"><a class="smallButtonGreyW"><span class="smallButtonGreyW">Search</span></a></li></ul>')
                .attr('id', 'sok')
                .appendTo('#table_filter label')
                .bind('click', function(e){
                    var item = $(this);
                    searchTerm = $(item).val();
                    oTable.fnFilter(searchTerm);
                    if (bSearchingServerSide) bFilterWhenServerSideFinished = true;
                });                    
});

As you can see I fetch the data when the user is finished with writing in the hope that it gets fetched from the server before the user clicks the button. Now it only returns the results from the server. I want it to add the normal results as well. Is this possible?

DataTables in Salesforce

$
0
0
I want to add dynamic columns as per the server response.
I am getting the AJAX response from server but not sure how to set datatables

<script type="text/javascript">
var j$ = jQuery.noConflict();
j$(document).ready(function(){
// Make the Ajax Request
j$.getJSON("{!$Page.AjaxResponder}", {
"core.apexpages.devmode.url" :'1',
"q" :"0019000000AYjFj"
}, function(data) {
alert(JSON.stringify(data));
});
var oTable = j$('#example').dataTable( {
"sDom": '<"top"i>RT<"clear">lrpftS',
"sScrollY": "240px",
"sScrollX": "100%",
"sScrollXInner": "140%",
"oTableTools": { "sSwfPath": "{!URLFOR($Resource.DataTables, 'DataTables/extras/TableTools/media/swf/copy_csv_xls_pdf.swf')}" }
} );
new FixedHeader( oTable );
});
</script>

<!-- Main Table (This section should be dynamic as per the Content Columns requested from Main Page -->
<div class="container">
<table cellpadding="0" cellspacing="0" border="0" class="dataTable" id="example">
<thead>
<tr>
</tr>
</thead>
<tbody>

</tbody>
</table>
</div>

</apex:component>

AJAX response from Server
[Code]
[{"attributes":{"type":"Contact","url":"/services/data/v26.0/sobjects/Contact/0039000000AgUwlAAF"},"Id":"0039000000AgUwlAAF","Name":"Jack Rogers","Email":"jrogers@burlington.com"}
[/code]

bPaginate to hide/show pagination control from server side

$
0
0
hi there,

can anyone explain why setting the bPaginate form the server side to false/true will not effect anything? I need to disable (not showing) paging from the server side if there is not record found.. how can i achieve this?

thanks

ColumnFilter Plugin Help

$
0
0
Hey again,

I am trying to add the columnFilter plugin and added it to my js file, but I keep getting a syntax error. Any ideas? http://jagst3r15.com/scholarships360/table-of-scholarships/

 jQuery(document).ready(function($) {
    $('#scholarships').dataTable( {
        "bJQueryUI": true,
        "sPaginationType": "full_numbers",
        "iDisplayLength": 50,
 
    } );
		  .columnFilter({
			aoColumns: [ { type: "select", values: [ 'Gecko', 'Trident', 'KHTML', 'Misc', 'Presto', 'Webkit', 'Tasman']  },
				     { type: "text" },
				     null,
				     { type: "number" },
             { type: "select" }
				]

		});
 
} );

How do I get a specific td value from selected row?

$
0
0
Hi,

I have a table that I'd like to get a specific td value (a clientid) from the selected row, so I can use it in another function. The td in question is not displayed onscreen in the table.

Thanks in advance,
Mark

linked columns sorting problem

$
0
0
Hi to all,
I have some linked columns..
the problem is it sorts links not text..
but my aim is to sort text not links..

any help..,
Thnq
Viewing all 79625 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>