Search
3637 results 2071-2080
Forum
- 28th Aug 2022Please help me in datatale to model pagethanks for support. i am asking in stack over flow
- 1st Dec 2020how to use model dialogue instead of confirm api in preSubmit handlerHi, Apologies for the long delay on this one. That is 1.9.6 now available. Regards, Allan
- 2nd Jul 2020How to delete severals row from the datatable and django models at the same time?What exactly is not working? Its hard to say by looking at code snippets. Start by using the browser's Network Inspector tool to see what is being sent from the browser when the checkbox is selected. Just follow and debug the path for the request until you find where its breaking. Kevin
- 27th Sep 2019Populate checkbox in rows based on Model Object VariableHere is how I solved the issue, I had to use js to get the checkbox value instead of jQuery. See the status variable in the js file. cshtml <tbody> @foreach (var item in Model.SearchResult) { <tr> <td "col-md-1" class="ID" val="@item.ID">@item.ID</td> <td "col-md-1" val="@item.Name">@item.Name</td> <td><input type="checkbox" class="checkBox" val=@item.Value @(item.Value ? "checked=true" : "") /></td> <td></td> </tr> } </tbody> js $('.checkBox').on("change", function () { var row = $(this).closest('tr'); var data = table.row(row).data(); var ID = data[0]; var status = (this).checked;
- 12th Mar 2019Is there an example showing how to use DataTables in conjunction with Django models?Its hard to say without knowing what the sensor object contains. You might need to loop through it they way you have originally: list_objects = [] for index in range(len(json_objects)): list_objects.append(json_objects[index]['fields']) It sounds like you have an idea of what the data structure needs to be. You just need to get your Python code to create that structure Datatables supports. It will be hard for us to help with the Python side. But if you have questions please post them. Kevin
- 12th Sep 2018mysql database connected with datatable for the following model given in the link with server-sideAs we said on your other thread, use the script provided.
- 11th Dec 2015What is modern analogue of mColumns?I understand now - thanks for the clarification. Yes, the exportOptions.columns option is the way to do this. Allan
- 2nd Nov 2015Moderate size data set loads very slowI was under the impression these could be sorted by the "|" character Yes, but that is a regular expression separator, so you need to tell the columns().search() method to treat it as regex rather than as a plain string. You should also disable DataTables built in smart search since that would just play havoc with your own regex: table.columns( 0 ).search( "WR|RB|TE", true, false ).draw(); See columns().search() for details. Allan
- 25th Sep 2015Problems modeling data with EditorTHANKS! It worked perfectly, now I can remove my little "hack" :D
- 28th May 2015Add new internal events on data model layer call _fnCallbackFire inside _fnAddData and _fnClearTableHi Simon, I'm actively looking into this for v1.11 - also for row updates and deletes as well. My biggest concern at the moment it the impact on performance. It isn't so bad if you use native Javascript arrays / callbacks like that, but jQuery events add some serious overhead. I've yet to decide how to handle that. Allan