How do I filter only related records in MJoin?
I have the following code in my controller. When run, it pulls every record in the comment table instead of only those in the comment_access table with the correct cdi_master_id. .MJoin(new...
View ArticleWhere field NOT IN ("a", "b", "c") ?
Joining a table for pull down list, but need to EXCLUDE certain unneeded IDs The following code does not seem to work (The FIRST where causes the error) Does PHP support IN / NOT IN (LIST)? If so, can...
View Articleon Draw running multiple times
I've noticed that the Draw event is sometimes triggered multiple times on a page load. On a site where I have multiple pages with various DT setups the following code will trigger 1-3 times (varying by...
View ArticlePass datatables to webworker.
I have a problem to use datatables instance inside a web worker. How can i pass raw object instead of type API ? if i use the _API resulting from the instance i get 'Converting circular structure to...
View ArticleExport multiple datatables in different Excel sheets
Hi guys, I'm using PHP and javascript. We have intermediate level in datatables as we use them regulary in our projects. I have 2 datatables in one html page fully functional. I wonder if I could...
View ArticleTrying to dynamically add a row via javascript
I'm using version 1.10.2. According to the documentation, fnAddData is deprecated prior to 1.10. What I'm doing is I'm moving a row from one table to another via a click event. The click event does an...
View ArticleHyperlink on columns does not call click event using jquery on class
Hello, I have a table which i add a custom hyperlink on a column which then i expect to be clicked and fire a $('.myClass').on('click',function(e){}); call. this is how i add the hyperlink "aTargets":...
View Articlephp How to join subquery ? is possible like query builder??
I want to join subquery. How?? Editor::inst( $db, 'user_info' ) ->fields( Field::inst( 'user_id' ), ... ) ->leftJoin( 'club_info', 'club_info.club_id', '=', 'user_info.club_id' ) /* i want to...
View ArticlePrinting different headers
Hi, When printing We can define mRender function to have a different output for cells. Is there some way to print different headers than the one rendered? Thanks, Yishay
View ArticleSum of the product of 2 columns
Hi, I have a 2-column table. Column "quantity" and "per Unit". For each row I want to multiply "quantity" by "per Unit", then sum all of that, then update at the footer. I could not find any example,...
View ArticleRemove button css reference?
Hello, I am trying to change the background color for the remove button in this block: buttons: [ { extend: "edit", className: 'edit', editor: editor, text: "Edit Selected Comments" }, { extend:...
View ArticleBootstrap Integration: form-inline and per-column filters
Hi Allan, With the Bootstrap Integration the form-inline class on sWrapper is a bit annoying when we want filters on columns. Having it on the wrapper prevent from having full-width input on the footer...
View ArticlePluck returns blank values
Hello, Have an issue with the pluck() function. it seems to be returning blank values. Any suggestion. { extend: "edit", className: 'btnSelect2', editor: editor, text: "Delete Leave Request",...
View ArticleChild Row - How to select Parent Row
I am using a nested child row for detailed information. I have a need to refresh the data for the parent row, and cannot figure out how to properly select the parent my javascript. This is the...
View ArticleDisable row selection
Hi! One more question.... I have the following conditional code: ```{ "data": "cdi_calendar_changes.active", "render": function (val, type, row) { return val == 0 ? "<font...
View ArticleDatatables 1.10+ & ASP.NET MVC 5 with Server Side Integration
I recently had to convert a ColdFusion application to ASP.NET MVC 5 application. As I am fairly new to ASP.NET, this post was a time saver:...
View Articlenot firing initComplete and fninitComplete ??????
not firing initComplete and fninitComplete ??????
View ArticleHow do you add a filter to the header only using the API?
I am struggling to understand how to add a filter to each column. To set things up, I never add any header or footer HTML code into the .cshtml since datatables really doesn't need it. This keeps the...
View ArticleDatatables not working on IE11 on a table with approx. 600 rows
Hello, we are using Datatables on a site for several tables. It is working fine if the number of rows is small. However, there is a table with approx. 600 rows and Datatables is not working at all. No...
View ArticleSort table not based on values in dataset
Good morning, I am trying to sort a table, based on values, which are combined in one Column. For instance I have this render function for the column: render: function (val, type, row) { return...
View Article