Search
23531 results 2641-2650
Forum
- 28th Dec 2022How to search in two columns of a datatable?Use a regex search. See this example. In the Global search input type accountant|tokyo. Check the Treat as regex checkbox then uncheck the Use smart search checkbox. Kevin
- 26th Oct 2022Set a columns value in php editor server side based on the value of another column.Thanks Allan
- 5th Oct 2022On Creating Dynamic columns from server and respective data for those columns. But getting errorThis appears to be a duplicate of your other thread unless I'm mistaken? Allan
- 19th Sep 2022Move filters out of columns and add column names to each selectDoing a little debugging of the code where the item is selected you can see some of the special characters are escaped using $.fn.dataTable.util.escapeRegex(). You need to remove the \, like this: http://live.datatables.net/sixopiti/22/edit Look at the console for the output with the backslash. BTW, if you work on an example and make changes the link will change (or you might need to clone it). Once you make the changes you can post the new link for us to look at. Kevin
- 17th Sep 2022Formatting date text outside of columns in expandable accordion (details)This won't work: + {data: d.UpdatedAt, render: $.fn.dataTable.render.moment("YYYY-MM-DDTHH:mm:ss.SSSZ",'Do MMM YY' )} + Basically you are trying to display an object. Just use moment to display the date. See if this works: function format(d) { return '<div class="row"> 'Last Updated: ' + moment(d.UpdatedAt).format("YYYY-MM-DDTHH:mm:ss.SSSZ",'Do MMM YY' )}+ '<br>' + '</div>'; } The syntax might not be correct but it should get you going in the right direction. Kevin
- 7th Sep 2022sort two columns depending on the most recent data enteredin column 3 (causing columns.render to run for column
- 20th Aug 2022C# - Server side Where Clause is overriding client columns searchYou probably just need to use anonymous functions to do the grouping. See the example here. Allan
- 29th May 2022Unable to get result from function while rendering columns using server side processingYou're mixing PHP and JS there - so that's going to be cause problems. Maybe post more code and explain what you're trying to do so we have more context to help you, Colin
- 25th Apr 2022Hi, Im trying to understand that how columns visibility is being controlled by options:buttons.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
- 12th Apr 2022Show DataTable columns depending on select option headerThank u and i will keep you up to date if it worked