Search
11152 results 7511-7520
Forum
- 19th Sep 2012Why is my DataTable headers not sorting and the fields not filtering?Reports First Name Last Name Grade Attendance Code Class Day Reports First Name Last Name Grade Attendance Code Class Day @foreach (var item in Model.Enrollments) { @Html.HiddenFor(modelItem => item.EnrollmentID) @Html.HiddenFor(modelItem => item.Assignment) @Html.HiddenFor(modelItem => item.Course.Title) @Html.HiddenFor(modelItem => item.CourseID) @Html.HiddenFor(modelItem => item.Date) @Html.HiddenFor(modelItem => item.dayOfWeek) @Html.HiddenFor(modelItem => item.Instructor) @Html.HiddenFor(modelItem => item.StudentID) @Html.HiddenFor(modelItem => item.Student.Address) @Html.HiddenFor(modelItem => item.Student.CourseID) @Html.HiddenFor(modelItem => item.Student.Courses) @Html.HiddenFor(modelItem => item.Student.EnrollmentDate) @Html.HiddenFor(modelItem => item.Student.Enrollments) @Html.HiddenFor(modelItem => item.Student.FullName) @Html.HiddenFor(modelItem => item.Student.InstructorID) @Html.HiddenFor(modelItem => item.Student.Instructors) @Html.HiddenFor(modelItem => item.Student.StudentID) @Html.ActionLink("Report", "PrintCustomers", "PdfRender", new { sName = item.Student.FirstMidName, courseTitle = item.Course.Title, sNumber = item.Student.StudentNum, instructorName = HttpContext.Current.Session["teacherName"] }, null) @Html.EditorFor(modelItem => item.Student.FirstMidName) @Html.EditorFor(modelItem => item.Student.LastName) @Html.TextBoxFor(modelItem => item.Grade, new { Value = "0" }) @Html.ValidationMessageFor(model => model.Enrollments.FirstOrDefault().Grade) @Html.TextBoxFor(modelItem => item.attendanceCode, new { Value = "1" }) @Html.ValidationMessageFor(model => model.Enrollments.FirstOrDefault().attendanceCode) @Html.EditorFor(modelItem => item.classDays) } <br /> <Input Type ="submit" Value="Submit Attendance"/> }
- 23rd Jul 2012Data Formatting and Col Sortingthe column can be sorted numerically? I can set
- 3rd Jul 2012Retrieve list of elements in sorted order with paggingHi, First thanks for datatables has save me much time and introduce me into jquery world. Thanks a lot. I have small challenge, i need to generate an array with column value in the correct order defined or redefined when someone click on header. I have tried to retrieve and i can only retrieve the first page values, and when using fngetnodes I only achieve to retrieve the not order elements. How can i retrieve all values in the correct order, as i see them? Thanks a lot, and congratulation for this fantastic work.
- 28th Dec 2011Sorting / Fitering with in a fieldHey, i've a table looking like these: [code] name date content 12 Group A Group B Group I want to filter Group X [/code] The values are unique for each row. I want to filter the group, if possible with the normal filter text-field wich filters over all columns. If I type a group in the filter field, nothing happens, because all groups are in the sourcecode of each field. I only want to filter the selected group. Is there any way? Kind regards Nick
- 16th Dec 2011Custom sorting questionMy table has several columns. Currently I have searching enabled for individual columns. This is working great. What I'd like to do now though, is add an option to search for great than or less than on only specific columns. For example two of the columns in my table are numeric only data. I would like the user to be able to enter "<100" in the search field to filter that column and show all items less than 100. I'd also like them to be able to enter the opposite ">100" to filter and show all items greater than the number they enter. Obviously I want them to be able to enter any number (<53, >12, >400, etc). I'm sure this is possible; the question is, who has figured it out already? Thanks, -Rhon
- 1st Dec 2010Fix for "UK Date" sorting pluginThe plugin code works mostly fine off the bat . My respect goes to Andy McMaster for submitting it to the Datatables.net website. However, it was putting 11/08/2005 before 09/13/2005 in ascending order, because the code was calculating a higher value for the latter date. Here is my fix, which is to multiply the month portion by 2 so that it is weighted higher: [code] jQuery.fn.dataTableExt.oSort['us_date-asc'] = function(a,b) { var ukDatea = a.split('/'); var ukDateb = b.split('/'); var x = (ukDatea[2] + ukDatea[1] + ukDatea[0]*2) * 1; var y = (ukDateb[2] + ukDateb[1] + ukDateb[0]*2) * 1; return ((x < y) ? -1 : ((x > y) ? 1 : 0)); }; jQuery.fn.dataTableExt.oSort['us_date-desc'] = function(a,b) { var ukDatea = a.split('/'); var ukDateb = b.split('/'); var x = (ukDatea[2] + ukDatea[1] + ukDatea[0]*2) * 1; var y = (ukDateb[2] + ukDateb[1] + ukDateb[0]*2) * 1; return ((x < y) ? 1 : ((x > y) ? -1 : 0)); }; [/code]
- 24th Nov 2010Sorting heavy tablesHi, Im using datatable for a project but it seems that whent tables exceding 400 rows, Firefox send me an error "Script look busy.." or something else with stop script/continue options... It seems that it is the order function because it not depending of the number of html table affected... 1 table with 450 rows throw error but 2 tables with 400 rows display correctly. How can i fix that... more : the table contain 20 cols and can reach 3000 rows.... Thanks for your future replies :)
- 23rd Nov 2010error with sortingHello, Im using DataTables version 1.7.4 with server-side processing. When Im searching a non existing string (like xxx) the following json will send: { "sEcho": 2, "iTotalRecords": "226", "iTotalDisplayRecords": "0", "aaData": [] } I checked it with jsonlint no errors. But I get the error DataTables warning: JSON data from server could not be parsed. This is caused by a JSON formatting error. My expectation is the note for sZeroRecords (dataTables.german.txt). Any ideas what can be wrong? Thanks a lot for you're great work!
- 24th Mar 2010sorting html with sAjaxSourcehtml are not being sorted correctly, two questions, should
- 6th Dec 2025Table width issueWhen switching pages or sorting a column, the table