Skip to content
Advertisement

Tag: datatables

DataTables Requested unknown parameter ‘PageId’

I am running into the following error trying to load DataTables Objects data (https://datatables.net/manual/data/): Below is example json data I am recieving from my C# SchemaReport/GetReportJson controller and being used in JQuery ajax success callback to initialize my DataTables: DataTables HTML: JQuery ajax and DataTables init script: I noticed that after acknowledging the error DataTables loads as following and stating

Change button text depend on click of another button

I have button in datatable which has dropdown items. I want to change text of the button depend on click of dropdown item. For example : if user clicks on ‘Toggle start date’, the text of main button should be changed from ‘Table control’ to ‘Toggle start date’. Answer You can simple use dt.buttons(0).text(‘Text you need’) like: Reference: buttons().text()

Multiple Arrays in DataTable

So I am working on a project and am having trouble trying to use multiple arrays of data in a data table. The issue I am running into is my initial set of data comes from a sharepoint list call(the calculations variable). I then use values in that array to run some calculations and put those into their own array(formulatedNumbers).

jQuery DataTable: thousands separator option doesn’t work

Here I set as described the data table thousand separator, but it doesn’t work the way I expected. Can anybody help me? Thanks Answer You can use a column render function to convert your source data from numbers without thousands separators to the format you want. This has the following features: It will work for every record in the table,

jQuery addClass and toggleClass not working

I created a table using datatables and added a “More” button which triggers a mini-dropdown. This button and its dropdown content show perfectly, however, when I tried to distinctively show that the button is active anytime it is clicked using jQuery’s addClass() or toggleClass() functions, the button refuses to add or toggle the “active” class. jQuery CSS datatables Answer IDs

Advertisement