Search
43606 results 6601-6610
Forum
- 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
- 23rd Nov 2019Pasar una data table a una tabla de mysqlLos datos estan presentados en una vista de "datatable", y esas lineas las tendria que pasar a una tabla.... se podria hacer de alguna otra manera??
- 18th Nov 2019Data table pagination not showingThank you very much @colin .
- 9th Nov 2019how to add print button with column filter in data table ?thanks a lot kevin your example link is made my day. great exactly what i want . thanks again .
- 23rd Oct 2019Need to add new column to a existing Json feeded Data TableUse columns.render. You will find some hyperlink examples in the docs. Kevin
- 17th Oct 2019How to hide the search bar in my print window(not the data table print button window)?Hi @h3aven , As you can see, it's not happening here. We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here. Cheers, Colin
- 9th Oct 2019Export table data using 'PDF all page' and 'Excel All Page' makes Page unresponsiveHi @Gurupriyan , We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here. Cheers, Colin
- 7th Oct 2019DataTables warning: table id=my_table - Requested unknown parameter '0' for row 0, column 0.Hi @Danny4x , No, there's intellisense I'm afraid, just the manuals. That's a lot of data to pull back, it would be worth considering serverSide. The protocol is discussed here. This section of the FAQ should help too, it discusses various techniques to improve performance, Cheers, Colin