Search
18878 results 631-640
Forum
- 30th Oct 2015How to use Restful API when the datatable expects more data than was sent in with the create?Good to hear you got it working! Allan
- 21st Oct 2015How to create custom filter buttonsWhat you would probably need to do is send some extra information to the server to tell it that it should ignore a specific condition - the ajax.url() method for example could be used to set a GET parameter on the URL. The PHP script would then check for that if ( ! isset( $_GET['...'] ) ) { $editor->where( ... ); } etc. Allan
- 6th Oct 2015If WP custom field contains a value create a hyperlinked entry, else make it plain text.ThomD, thanks very much for the suggestions. Looking back. I think my question wasn't clear enough. I have a JSON file, which is supplying the tabular data via an AJAX request. The variable I'd like to compare is a WordPress PHP variable ('food-status') that is not present in my JSON file. I'd consider manually adding them, but its a list that has 18,000+ entries, and I don't know a good way to automate it. If I tried to call a function from within the DataTables script, wouldn't my PHP var be outside the DataTable's scope?
- 8th Sep 2015How can I create a link using the data source in Datatables Row Grouping?Hello everyone, In case someone else encounters this problem here is the solution that someone managed to come up with: api.rows({page:'current'} ).data().each( function ( data, i ) { var group = data[0]; var groupLink = '<a href="' + data[3] + '">' + $('<div>').text(group).html() + '</a>'; if ( last !== group ) { $(rows).eq( i ).before( '<tr class="group"><td colspan="5">'+group+'</td></tr>' ); last = group; } }); And the link: https://stackoverflow.com/questions/32445714/how-can-i-create-a-link-using-the-data-source-in-datatables-row-grouping
- 24th Jul 2015Avoid that dependent() is fired on form createHi, I missed your thread before - sorry about that! Yes, this is expected behaviour as the value is changed at that point - more specifically it will set the field's value to be the default value (usually an empty string). Part of the reason for this is if you have been editing a field previously then the value it holds would be that old value and you want it to be replaced with the default value. If you really don't want the event to occur, you would need to attach attach and remove the listener every time the form is opened and closed - although I think that could lead to unexpected behaviour. Allan
- 16th Jul 2015Let the editor create the form based on AjaxThanks, that should do it :D
- 12th Jun 2015How do I create a filter to only show rows containing a checkboxFixed it! The data-search attribute needs to be on the not the tag, and needs to be on EVERY row: <!-- Valid Row --> <td class="enter" data-search="valid"> <input id="Enter_30241_3340138" type="checkbox" value="true" name="Enter_30241_3340138"></input> </td> <!-- Invalid Row --> <td class="enter" data-search=""> <input id="Enter_30241_3340138" type="checkbox" value="true" name="Enter_30241_3340138"></input> </td>
- 9th Jun 2015How to create DataTable which will have Column wise filters, Sort, Pagination, Search,and Export optSince yadcf uses datatables api under the hood I believe that the export should work just fine
- 9th Jun 2015How do you remove the transaction from tabletools popups for create, edit and delete buttons?Hi Allan, Thanks for the response, very helpful :-)
- 1st Jun 2015create editor autofill input fieldsHi, The title of your post references the AutoFill extension - are you looking to use AutoFill in an Editor form? That is not currently possible - AutoFill will work in a DataTable only. For your question, you can use a standard jQuery change event - just use the field().input() method to get the select element and then attach a change event as you would for any normal element. Another option is to use the dependent() method which will trigger on value change of the selected field. Allan