Search
43630 results 6991-7000
Forum
- 9th Jun 2013Inject html tags into data tableA method like this might work for you: http://datatables.net/release-datatables/examples/advanced_init/dom_toolbar.html . Another option is to create a feature plug-in: http://datatables.net/blog/Creating_feature_plug-ins Allan
- 28th May 2013Making table responsive (hiding column automatically)Just the jQuery standard way: $('td').width() Allan
- 21st May 2013Dropdown list in editable table posts the index and not the text selectedThe problem was that I was returning the list of states in the this format: [["AL"],["AK"],["AZ"],["AR"],["CA"],["CO"],["CT"]] I needed it in this format: {"AL":"AL","AK":"AK","AZ":"AZ","AR":"AR","CA":"CA","CO":"CO","CT":"CT"} I changed the controller method to return the state abbreviation as a two-dimensional array var states = stateList.Select(f => new[] { f.StateAbbv.ToString(), f.StateAbbv.ToString() }); I then wrote a function to replace some characters to achieve the needed format.
- 10th May 2013FixedColumns example - jQuery UI themed table - throws error when filteringThanks for such a fast reply, I'll check that build right away :)
- 8th May 2013Table with radio buttons - first row un-checkedGuys, Here is the quick solution to it..... Basically, you need to set the Radio button as checked via JS/JQuery after the DataTable is Applied. Below link is used for Extension of Demo http://datatables.net/forums/discussion/14180 JQuery code $(document).ready(function() { $('#department_permissions_table').dataTable(); } // code to set the value as checked. jQuery("#deptartment_permission[2]").attr('checked', 'checked'); ); JS Code radiobtn = document.getElementById("theid"); radiobtn.checked = true;
- 3rd May 2013Show empty table on startThis worked fine for me: [code] "fnDrawCallback": function( oSettings ) { if($('#vehicles_table_filter input').val() != ''){ $('#vehicles_table tr').css("display",""); } else { $('#vehicles_table tr').css("display","none"); } } [/code] Thanks! Dave
- 29th Apr 2013Ordering Table on ID ColumnThanks for the reply. I cleaned the data and now it is working :)
- 23rd Apr 2013get sorted jquery data table dataAh - you mentioned the data in the title which I way I suggested the _ method. For the nodes use the $ method. Allan
- 15th Apr 2013Retrieve data from table on editor onInitEditCurrently no - Editor only has the ability to edit a single row at a time. Only the first row selected is edited if configured in such a way that the edit button is still active when more than one row is selected. Allan
- 10th Apr 2013Table Tools select_all seems to ignore filter criteriaHow about: [code] { "sExtends": "text", "sButtonText": "Select filtered out", "fnClick": function ( button, config ) { var filterSet = table.$('tr', {filter:'applied'}); return table.$('tr').map( function (index, el) { return $.inArray( el, filterSet ) === -1 ? el : null; } ); } } [/code] It simply gets the currently filtered element set, the full set and calculates the difference. Not particularly optimal due to the inner loop, but it should do the job nicely. Allan