Search
43675 results 6611-6620
Forum
- 23rd Jan 2020Why my datatable error when my database table dont have value? heres my codeits okay now guys thank you, i just change the $sale->client_id to $client->id
- 20th Jan 2020jquery data table export pdf, excel and csv col span with header and rows are not workingChicos @Hbra2310 y Jose, en efecto datatable no posee funcion propia para multiple headers, pero en Stackoverflow hay una funcion que te devuelve una matrix del Header, y lo que haces con esa matrix es trabajarla en funcion a lo que necesites (excluir o fusionar)
- 20th Jan 2020how to reduce the width of the columns in the tableYou can disable autoWidth, and set manually with columns.width. Colin
- 16th Jan 2020How to keep return carriage (\r\n ) in the table column.Thank you, I replaced it before doing JSON.parse().
- 3rd Jan 2020My Jquery Data table is not working properly...Please don't duplicate threads.
- 30th Dec 2019Multi Filtering by column on serverside tableCan you link to a page showing the issue, please? Colin
- 18th Dec 2019How to set the index values in particular order of each row in tableyou probably want the row id, don't you? If you use the select extension this is pretty easy: ...... var selectedId = '#' + yourTable.row({selected: true}).id(); yourTable.row(selectedId).do something ...
- 10th Dec 2019How do I sort a table column of select->option html tags (by selected option)Hi @allan and All, I modified an example found in a forum to write custom filters (select option, textarea ..) idea is to write my regexp that will be used by search function to filter. It is working, but please let me know your thoughts (if it is good or it sucks :) *_indexes variables (for example select_options_indexes) are indexes of columns depending on their type, and that I provide at beginning of script // Apply the search table.columns().every( function (index) { // that is column var that = this; $( 'input', this.footer() ).on( 'keyup change clear search', function () { that=table.columns(index); // this is the input searched string typed in the column search field if ( that.search() !== this.value ) { column_search_string=this.value; column_index=index; if (input_indexes.includes(index)) { if (this.value !== '') { regex_expr='<input type="text".*value=".*'+this.value+'.*" maxlength=.*\>'; regex=true; smart=false; } // when search text is cleared on input text column, there is no value attribute in the html input attrbute // so regexpr will not match else { regex_expr=''; regex=false; smart=false; } } else if (select_options_indexes.includes(index)) { regex_expr='[^]*selected="">[^<]*'+this.value+'.*</option>[^]*'; regex=true; smart=false; } else if (text_area_indexes.includes(index)) { regex_expr=this.value; regex=false; smart=true; } else if (simple_text_indexes.includes(index)) { regex_expr=this.value; regex=false; smart=true; } search_col=that.search(regex_expr, regex, smart); search_col.draw(); } } ); } ); } ); thank you very much.
- 6th Dec 2019DataTables warning: table id=suburbs_table - Invalid JSON response.I added ["data": []] around the JSON. Prob something that could be added to the help page: http://datatables.net/tn/1
- 1st Dec 2019The table can display data but the function does not work.Typically when the Datatables functions don't work there is a Javascript error stopping the script. Check your browsers console for errors. Kevin