jquery-datatables

Datatables sorting varchar

时光毁灭记忆、已成空白 提交于 2020-01-06 19:19:07
问题 I have a SQL query that is pulling back results ordered correctly when I try the query in MSSQL Studio. I am using Datatables from Datatables.net and everything is working great apart from a sorting issue. I have some properties in the first column and I would like to order these like this: 1 1a 1b 2 3 4a 5 etc However what comes back is something like this: 1 10 100 11 11a I have looked though various posts but nothing seems to work and I believe that this must be something I should trigger

Datatables sorting varchar

浪子不回头ぞ 提交于 2020-01-06 19:18:51
问题 I have a SQL query that is pulling back results ordered correctly when I try the query in MSSQL Studio. I am using Datatables from Datatables.net and everything is working great apart from a sorting issue. I have some properties in the first column and I would like to order these like this: 1 1a 1b 2 3 4a 5 etc However what comes back is something like this: 1 10 100 11 11a I have looked though various posts but nothing seems to work and I believe that this must be something I should trigger

How to correctly reload data from web method using JQuery DataTables?

江枫思渺然 提交于 2020-01-06 18:11:06
问题 I'm using JQuery DataTables plug-in to work with my tables and recently I switched to server-side pagination and filtering. In particular, I have a web method that return data to populate customers table: [WebMethod] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public string GetCustomers(string jsonAOData, int mode) { // ... } and in my page I use this code to retrieve data via AJAX calls. var grid = $('#grid').dataTable({ bJQueryUI: true, bLengthChange: false, iDisplayLength:

datatables are not updating in meteorjs

瘦欲@ 提交于 2020-01-06 15:14:05
问题 I am working on an application using meteorjs. I am totally new to meteor. In my application I am using dataTables with meteor for shorting , pagination and searching. This is my template code <template name="questions"> <div class="col-md-3"> {{#constant}} <table class="table table-striped table-bordered table-condensed table-hover listing" id="content_listing-table"> <thead> <tr> <th>Questions</th> </tr> </thead> <tbody> {{#each questions}} <tr> <td> <a href="#" data-id={{_id}} class="edit"

DataTables error: Requested unknown parameter '1' from the data source for row 0

时光怂恿深爱的人放手 提交于 2020-01-06 02:46:07
问题 I'm trying to create a table using jQuery / DataTables using JSON data as a source. I have validated the data it is fine. Unfortunately I'm keep getting this error: "DataTables warning (table id='example'): Requested unknown parameter '1' from the data source for row 0". I'm not sure what am I doing wrong here: JSON dataSet = [ { "Month": "October", "Notices Received": "0", "Declined Participation": "0", "Selected Field Reviews": "0", "Selected File Review": "0", "Pending": "0", "Pending

Prevent the jquery datatable to restore to initial state when clicking the toggle button

一个人想着一个人 提交于 2020-01-05 20:00:50
问题 Here I have a bootstrap styled fixed column datatable where i can toggle the columns by a button as, $('#ToggleColumns').click(function () { table.destroy(); if(columnNumber == 2) { columnNumber = 0; } else { columnNumber = 2; } }); If I am at the 3rd page of datatable pagination and when I toggling the columns, the table restores to its initial position. ie, first page. How can I prevent it and be there in the 3rd page itself after toggling? The same applies to the no. of record selection

filter table data based on drop down values of first column only in DataTables

眉间皱痕 提交于 2020-01-05 13:36:45
问题 The functionality for select options for all the columns as mentioned on the website of data tables is mentioned below. How do i make it filter the table data on the drop down values of the first column only and also place the select drop down somewhere else rather than the usual header section.see link for example initComplete: function () { var api = this.api(); api.column().indexes().flatten().each( function (i) { var column = api.column(i); var select = $('<select><option value=""><

filter table data based on drop down values of first column only in DataTables

ⅰ亾dé卋堺 提交于 2020-01-05 13:35:02
问题 The functionality for select options for all the columns as mentioned on the website of data tables is mentioned below. How do i make it filter the table data on the drop down values of the first column only and also place the select drop down somewhere else rather than the usual header section.see link for example initComplete: function () { var api = this.api(); api.column().indexes().flatten().each( function (i) { var column = api.column(i); var select = $('<select><option value=""><

dataTables fixed columns plugin NOT working

你。 提交于 2020-01-05 08:27:30
问题 To share the files I have created a project on github repo link: https://github.com/shantanookirtane/dataTablesFixedColumns.git This repository has index.html where the table gets loaded under the DOM structure similar to what is getting created when I run my application. The repo has all necessary css and js files. I have add the exact issue description in README.md file on github for this project, pasting the same here again. Datatable version : 1.9.1 Datatable Fixed column version: 3.0.2

Slimscroll and jQuery Datatable

巧了我就是萌 提交于 2020-01-05 05:11:31
问题 Im trying to do mix them. use a slimlcroll with jQuery DataTable (no pagination). So, I found these examples: Nice simple use of slimscroll Nice Table Now I tried to make the content of the table use slim scroll but it just doesnt work :( what I tried is to put a div serrounding the tbody - and slimscoll that div: <div id="slimtest1"> <tbody> ... </tbody> </div> http://jsfiddle.net/yossico/hxkvfs60/2/ I also try to slim scroll the tbody directly: http://jsfiddle.net/yossico/hxkvfs60/3/ <tbody