Questions tagged as 'datatable'

1
answer

Building DataGrid with C # WPF at runtime

I have a DataTable where I will store some data that the user informs and through it I want to pass the information to the DataGrid. gvDados.ItemsSource = dt.DefaultView; //Essa é a ligação entre o DataTable e a Grid In case the user inform...
asked by 09.02.2017 / 17:20
1
answer

Hide and show button in a DataTable with jquery

I have to show or hide a button inside my DataTable as the return of an ajax function. I can already hide (I hide all by default) and I already know when I have to show the button, the problem is that I can not show the specific button of tha...
asked by 06.02.2015 / 11:40
1
answer

Sort the months by Name DataTables Jquery

I have the following columns in my table, and one of them is "Month" it receives an int that is referring to the number of the month (1 - Jan, 2 - Feb, etc.) When the screen loads the table displays the months in the right order but if I click t...
asked by 20.12.2018 / 13:45
1
answer

How do I change a row in the data table when I select it?

In this code I can select it and in the console.log have access to the information, but I do not know how to change it: $(document).ready(function () { var oTable = $('#tableproduct').DataTable(); $('#tableproduct tbody').on('clic...
asked by 18.10.2018 / 22:12
2
answers

Javascript Error - DataTables

Hello, I have a code that works in dataTables on a page, so I took the template and the only changes I made was renaming the js , renaming the function $ () The rest left the same in the case the structure, I only know the basics of js and came...
asked by 16.10.2018 / 14:30
1
answer

Laravel Relationship in Datatable server side

Would there be any way to pass the model relationship to the columns of the Datatable server side? For example in the Datatable script: columns: [ { data: 'marca_id', name: 'marca_id' }, { data: 'automovel_modelo', name: 'automovel_...
asked by 19.09.2018 / 13:36
1
answer

How to make a column with always fixed data in a DataTable? MVC JS

Hello. I have a DataTable that is returning BD values, however I need only one column to always have fixed values that will not come from the DB (in this case, it is a column with the months of the year). However, I can not change the structure...
asked by 31.07.2018 / 17:51
4
answers

Fill in a datatable from a txt

I have a datareader writing directly to the text file, int count = dataReader.FieldCount; while (dataReader.Read()) { for (int i = 0; i < count; i++) {...
asked by 22.03.2018 / 17:03
1
answer

How to sort field 1/5 of plots in datatables

$.ajax ({ type: 'POST', dataType: 'json', url: BASE_URL + '/conta_pagar/pesquisa_contas', data: {palavra: palavra}, success: function (json) { var col...
asked by 25.10.2017 / 05:11
1
answer

Datatable Jquery Print Specific Elements

How to print specific elements from outside the datatable? Here is a sample JSFIDDLE I wanted when I hit the PRINT button, this div below is also printed <div id="PRINT_HERE_TOO" class="test"> <h1> Pr...
asked by 06.11.2017 / 15:44