public object RequestList(string sidx, string sord, int page, int rows, string filters, int type_id) { int totalPages = 0; int totalRecords = 0; IQueryable <Feedback> feedbacks = _repository.GetAllRecords().Where(f => f.FeedbackType_Id == type_id); feedbacks = JqGrid <Feedback> .GetFilteredContent(sidx, sord, page, rows, filters, feedbacks, ref totalPages, ref totalRecords); var rowsModel = ( from feedback in feedbacks.ToList() select new { i = feedback.Id, cell = new string[] { feedback.Id.ToString(), feedback.User == null ? "-" : feedback.User.FirstName + " " + feedback.User.LastName, feedback.Comments == "" ? "-" : feedback.Comments, feedback.AddComments == "" ? "-" : feedback.AddComments, feedback.Scores == null ? "0" : feedback.Scores.Count.ToString(), "<a title=\"" + ViewRes.Classes.Services.Details + "\" href=\"/Feedbacks/Details/" + feedback.Id + "\"><span id=\"" + feedback.Id + "\" class=\"ui-icon ui-icon-search\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Delete + "\" href=\"#\"><span id=\"" + feedback.Id + "\" class=\"ui-icon ui-icon-trash\"></span></a>" } }).ToArray(); return(JqGrid <Feedback> .SetJsonData(totalPages, totalRecords, page, rowsModel)); }
public object RequestList(User userLogged, string sidx, string sord, int page, int rows, string filters) { int totalPages = 0; int totalRecords = 0; IQueryable <Questionnaire> questionnaires; if (userLogged.Role.Name == "HRAdministrator") { questionnaires = GetQuestionnairesForAssociated(userLogged.Company_Id); } else { questionnaires = GetQuestionnairesForCustomer(userLogged.Company); } questionnaires = JqGrid <Questionnaire> .GetFilteredContent(sidx, sord, page, rows, filters, questionnaires, ref totalPages, ref totalRecords); var rowsModel = ( from questionnaire in questionnaires.ToList() select new { i = questionnaire.Id, cell = new string[] { questionnaire.Id.ToString(), "<a href=\"/Questionnaires/Edit/" + questionnaire.Id + "\">" + questionnaire.Name + "</a>", questionnaire.Description, GetTemplateString(questionnaire.Template), "<a title=\"" + ViewRes.Classes.Services.Modify + "\" href=\"/Questionnaires/Edit/" + questionnaire.Id + "\"><span id=\"" + questionnaire.Id + "\" class=\"ui-icon ui-icon-pencil\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Details + "\" href=\"/Questionnaires/Details/" + questionnaire.Id + "\"><span id=\"" + questionnaire.Id + "\" class=\"ui-icon ui-icon-search\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Delete + "\" href=\"#\"><span id=\"" + questionnaire.Id + "\" class=\"ui-icon ui-icon-trash\"></span></a>" } }).ToArray(); return(JqGrid <Questionnaire> .SetJsonData(totalPages, totalRecords, page, rowsModel)); }
public object RequestList(int climateScale_id, string sidx, string sord, int page, int rows, string filters) { int totalPages = 0; int totalRecords = 0; IQueryable <ClimateRange> climateRanges = GetByClimateScale(climateScale_id); climateRanges = JqGrid <ClimateRange> .GetFilteredContent(sidx, sord, page, rows, filters, climateRanges, ref totalPages, ref totalRecords); var rowsModel = ( from climateRange in climateRanges.ToList() select new { i = climateRange.Id, cell = new string[] { climateRange.Id.ToString(), "<a href=\"/ClimateRanges/Edit/" + climateRange.Id + "\">" + climateRange.Name + "</a>", climateRange.MinValue.ToString(), climateRange.MaxValue.ToString(), climateRange.Action, "<a title=\"" + ViewRes.Classes.Services.Modify + "\" href=\"/ClimateRanges/Edit/" + climateRange.Id + "\"><span id=\"" + climateRange.Id + "\" class=\"ui-icon ui-icon-pencil\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Details + "\" href=\"/ClimateRanges/Details/" + climateRange.Id + "\"><span id=\"" + climateRange.Id + "\" class=\"ui-icon ui-icon-search\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Delete + "\" href=\"#\"><span id=\"" + climateRange.Id + "\" class=\"ui-icon ui-icon-trash\"></span></a>" } }).ToArray(); return(JqGrid <ClimateRange> .SetJsonData(totalPages, totalRecords, page, rowsModel)); }
public object RequestList(string sidx, string sord, int page, int rows, string filters, int company_id) { int totalPages = 0; int totalRecords = 0; IQueryable <InstructionLevel> levels = GetByCompany(company_id); levels = JqGrid <InstructionLevel> .GetFilteredContent(sidx, sord, page, rows, filters, levels, ref totalPages, ref totalRecords); var rowsModel = ( from level in levels.ToList() select new { i = level.Id, cell = new string[] { level.Id.ToString(), "<a href=\"/InstructionLevels/Edit/" + level.Id + "\">" + level.Name + "</a>", level.ShortName, "<a title=\"" + ViewRes.Classes.Services.Modify + "\" href=\"/InstructionLevels/Edit/" + level.Id + "\"><span id=\"" + level.Id + "\" class=\"ui-icon ui-icon-pencil\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Details + "\" href=\"/InstructionLevels/Details/" + level.Id + "\"><span id=\"" + level.Id + "\" class=\"ui-icon ui-icon-search\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Delete + "\" href=\"#\"><span id=\"" + level.Id + "\" class=\"ui-icon ui-icon-trash\"></span></a>" } }).ToArray(); return(JqGrid <InstructionLevel> .SetJsonData(totalPages, totalRecords, page, rowsModel)); }
public object RequestList(int?company_id, string sidx, string sord, int page, int rows, string filters) { int totalPages = 0; int totalRecords = 0; IQueryable <Test> tests = GetByCompany((int)company_id); tests = JqGrid <Test> .GetFilteredContent(sidx, sord, page, rows, filters, tests, ref totalPages, ref totalRecords); var rowsModel = ( from test in tests.ToList() select new { i = test.Id, cell = new string[] { test.Id.ToString(), "<a href=\"/Tests/Edit/" + test.Id + "\">" + test.Name + "</a>", test.Code, test.Questionnaire_Id.HasValue ? test.Questionnaire.Name : "-", "<a title=\"" + ViewRes.Classes.Services.Modify + "\" href=\"/Tests/Edit/" + test.Id + "\"><span id=\"" + test.Id + "\" class=\"ui-icon ui-icon-pencil\"></span></a>", test.Finished ? "" : "<a title=\"" + ViewRes.Classes.Services.Finish + "\" href=\"/Tests/Finish/" + test.Id + "\"><span id=\"" + test.Id + "\" class=\"ui-icon ui-icon-locked\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Details + "\" href=\"/Tests/Details/" + test.Id + "\"><span id=\"" + test.Id + "\" class=\"ui-icon ui-icon-search\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Reports + "\" href=\"/ChartReports/ReportsList\"><span id=\"" + test.Id + "\" class=\"ui-icon ui-icon-document\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Print + "\" href=\"/Evaluations/GetMyPdf/" + test.Id + "\"><span id=\"" + test.Id + "\" class=\"ui-icon ui-icon-print\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Delete + "\" href=\"#\"><span id=\"" + test.Id + "\" class=\"ui-icon ui-icon-trash\"></span></a>" } }).ToArray(); return(JqGrid <Test> .SetJsonData(totalPages, totalRecords, page, rowsModel)); }
public object RequestList(int company_id, int state_id, string sidx, string sord, int page, int rows, string filters) { int totalPages = 0; int totalRecords = 0; IQueryable <Location> locations = GetByState(state_id).Where(c => c.Company_Id == company_id); locations = JqGrid <Location> .GetFilteredContent(sidx, sord, page, rows, filters, locations, ref totalPages, ref totalRecords); var rowsModel = ( from location in locations.ToList() select new { i = location.Id, cell = new string[] { location.Id.ToString(), "<a href=\"/Locations/Edit/" + location.Id + "\">" + location.Name + "</a>", location.ShortName, location.Region != null ? location.Region.Name : "-", "<a title=\"" + ViewRes.Classes.Services.Modify + "\" href=\"/Locations/Edit/" + location.Id + "\"><span id=\"" + location.Id + "\" class=\"ui-icon ui-icon-pencil\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Details + "\" href=\"/Locations/Details/" + location.Id + "\"><span id=\"" + location.Id + "\" class=\"ui-icon ui-icon-search\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Delete + "\" href=\"#\"><span id=\"" + location.Id + "\" class=\"ui-icon ui-icon-trash\"></span></a>" } }).ToArray(); return(JqGrid <Location> .SetJsonData(totalPages, totalRecords, page, rowsModel)); }
public object RequestList(string sidx, string sord, int page, int rows, string filters, int type_id) { int totalPages = 0; int totalRecords = 0; IQueryable <FunctionalOrganization> functionalOrganizations = GetByType(type_id); functionalOrganizations = JqGrid <FunctionalOrganization> .GetFilteredContent(sidx, sord, page, rows, filters, functionalOrganizations, ref totalPages, ref totalRecords); var rowsModel = ( from functionalOrganization in functionalOrganizations.ToList() select new { i = functionalOrganization.Id, cell = new string[] { functionalOrganization.Id.ToString(), "<a href=\"/FunctionalOrganizations/Edit/" + functionalOrganization.Id + "\">" + functionalOrganization.Name + "</a>", functionalOrganization.ShortName, "<a title=\"" + ViewRes.Classes.Services.Modify + "\" href=\"/FunctionalOrganizations/Edit/" + functionalOrganization.Id + "\"><span id=\"" + functionalOrganization.Id + "\" class=\"ui-icon ui-icon-pencil\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Details + "\" href=\"/FunctionalOrganizations/Details/" + functionalOrganization.Id + "\"><span id=\"" + functionalOrganization.Id + "\" class=\"ui-icon ui-icon-search\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Delete + "\" href=\"#\"><span id=\"" + functionalOrganization.Id + "\" class=\"ui-icon ui-icon-trash\"></span></a>" } }).ToArray(); return(JqGrid <FunctionalOrganization> .SetJsonData(totalPages, totalRecords, page, rowsModel)); }
public object RequestList(string sidx, string sord, int page, int rows, string filters) { int totalPages = 0; int totalRecords = 0; IQueryable <Demo> demos = GetAllRecords(); demos = JqGrid <Demo> .GetFilteredContent(sidx, sord, page, rows, filters, demos, ref totalPages, ref totalRecords); var rowsModel = ( from demo in demos.ToList() select new { i = demo.Id, cell = new string[] { demo.Id.ToString(), "<a href=\"/Demos/Edit/" + demo.Id + "\">" + demo.Company.Name + "</a>", demo.Company.Tests.FirstOrDefault().Code, demo.Company.Tests.FirstOrDefault().CurrentEvaluations.ToString(), demo.Company.Tests.FirstOrDefault().StartDate.ToString(ViewRes.Views.Shared.Shared.Date) + " - " + demo.Company.Tests.FirstOrDefault().EndDate.ToString(ViewRes.Views.Shared.Shared.Date), demo.Company.Users.FirstOrDefault().UserName, "<a title=\"" + ViewRes.Classes.Services.Modify + "\" href=\"/Demos/Edit/" + demo.Id + "\"><span id=\"" + demo.Id + "\" class=\"ui-icon ui-icon-pencil\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Details + "\" href=\"/Demos/Details/" + demo.Id + "\"><span id=\"" + demo.Id + "\" class=\"ui-icon ui-icon-search\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Delete + "\" href=\"#\"><span id=\"" + demo.Id + "\" class=\"ui-icon ui-icon-trash\"></span></a>" } }).ToArray(); return(JqGrid <Demo> .SetJsonData(totalPages, totalRecords, page, rowsModel)); }
public object RequestList(int questionnaire_id, string sidx, string sord, int page, int rows, string filters) { int totalPages = 0; int totalRecords = 0; IQueryable <Option> options = GetByQuestionnaire(questionnaire_id); options = JqGrid <Option> .GetFilteredContent(sidx, sord, page, rows, filters, options, ref totalPages, ref totalRecords); var rowsModel = ( from option in options.ToList() select new { i = option.Id, cell = new string[] { option.Id.ToString(), "<a href=\"/Options/Edit/" + option.Id + "\">" + option.Text + "</a>", option.Value.ToString(), "<a title=\"" + ViewRes.Classes.Services.Modify + "\" href=\"/Options/Edit/" + option.Id + "\"><span id=\"" + option.Id + "\" class=\"ui-icon ui-icon-pencil\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Details + "\" href=\"/Options/Details/" + option.Id + "\"><span id=\"" + option.Id + "\" class=\"ui-icon ui-icon-search\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Delete + "\" href=\"#\"><span id=\"" + option.Id + "\" class=\"ui-icon ui-icon-trash\"></span></a>" } }).ToArray(); return(JqGrid <Option> .SetJsonData(totalPages, totalRecords, page, rowsModel)); }
public object RequestList(string sidx, string sord, int page, int rows, string filters, int test_id) { int totalPages = 0; int totalRecords = 0; IQueryable <DemographicSelectorDetail> demographicSelectorDetails = GetByTest(test_id); demographicSelectorDetails = JqGrid <DemographicSelectorDetail> .GetFilteredContent(sidx, sord, page, rows, filters, demographicSelectorDetails, ref totalPages, ref totalRecords); var rowsModel = ( from demographicSelectorDetail in demographicSelectorDetails.ToList() select new { i = demographicSelectorDetail.Id, cell = new string[] { demographicSelectorDetail.Id.ToString(), "<a href=\"/DemographicsInTest/Edit/" + demographicSelectorDetail.Id + "\">" + demographicSelectorDetail.Demographic.Name + "</a>", demographicSelectorDetail.Test.Name, demographicSelectorDetail.Questionnaire.Name, demographicSelectorDetail.SelectorValue_Id.ToString(), "<a title=\"" + ViewRes.Classes.Services.Modify + "\" href=\"/DemographicSelectorDetails/Edit/" + demographicSelectorDetail.Id + "\"><span id=\"" + demographicSelectorDetail.Id + "\" class=\"ui-icon ui-icon-pencil\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Details + "\" href=\"/DemographicSelectorDetails/Details/" + demographicSelectorDetail.Id + "\"><span id=\"" + demographicSelectorDetail.Id + "\" class=\"ui-icon ui-icon-search\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Delete + "\" href=\"#\"><span id=\"" + demographicSelectorDetail.Id + "\" class=\"ui-icon ui-icon-trash\"></span></a>" } }).ToArray(); return(JqGrid <DemographicSelectorDetail> .SetJsonData(totalPages, totalRecords, page, rowsModel)); }
public object RequestList(string sidx, string sord, int page, int rows, string filters) { int totalPages = 0; int totalRecords = 0; IQueryable <Question> questions = GetAllRecords(); questions = JqGrid <Question> .GetFilteredContent(sidx, sord, page, rows, filters, questions, ref totalPages, ref totalRecords); var rowsModel = ( from question in questions.ToList() select new { i = question.Id, cell = new string[] { question.Id.ToString(), "<a href=\"/Questions/Edit/" + question.Id + "\">" + question.SortOrder + "</a>", question.Category.Name, question.Text, "<a title=\"" + ViewRes.Classes.Services.Modify + "\" href=\"/Questions/Edit/" + question.Id + "\"><span id=\"" + question.Id + "\" class=\"ui-icon ui-icon-pencil\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Details + "\" href=\"/Questions/Details/" + question.Id + "\"><span id=\"" + question.Id + "\" class=\"ui-icon ui-icon-search\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Delete + "\" href=\"#\"><span id=\"" + question.Id + "\" class=\"ui-icon ui-icon-trash\"></span></a>" } }).ToArray(); return(JqGrid <Question> .SetJsonData(totalPages, totalRecords, page, rowsModel)); }
public object RequestList(string sidx, string sord, int page, int rows, string filters, int type) { int totalPages = 0; int totalRecords = 0; IQueryable <Feature> features = GetFeaturesByType(type); features = JqGrid <Feature> .GetFilteredContent(sidx, sord, page, rows, filters, features, ref totalPages, ref totalRecords); var rowsModel = ( from feature in features.ToList() select new { i = feature.Id, cell = new string[] { feature.Id.ToString(), "<a href=\"/Features/Edit/" + feature.Id + "\">" + feature.Name + "</a>", feature.Scores.Count > 0 ? GetAverageByFeature(feature.Id).ToString() : "-", "<a title=\"" + ViewRes.Classes.Services.Modify + "\" href=\"/Features/Edit/" + feature.Id + "\"><span id=\"" + feature.Id + "\" class=\"ui-icon ui-icon-pencil\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Details + "\" href=\"/Features/Details/" + feature.Id + "\"><span id=\"" + feature.Id + "\" class=\"ui-icon ui-icon-search\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Delete + "\" href=\"#\"><span id=\"" + feature.Id + "\" class=\"ui-icon ui-icon-trash\"></span></a>" } }).ToArray(); return(JqGrid <Feature> .SetJsonData(totalPages, totalRecords, page, rowsModel)); }
public object RequestList(string sidx, string sord, int page, int rows, string filters, int questionnaire_id) { int totalPages = 0; int totalRecords = 0; IQueryable <Category> categories = GetByQuestionnaire(questionnaire_id); categories = JqGrid <Category> .GetFilteredContent(sidx, sord, page, rows, filters, categories, ref totalPages, ref totalRecords); var rowsModel = ( from category in categories.ToList() select new { i = category.Id, cell = new string[] { category.Id.ToString(), "<a href=\"/Categories/Edit/" + category.Id + "\">" + category.Name + "</a>", category.Description, category.Questionnaire.Name, category.CategoryGroup_Id.HasValue ? category.GroupingCategory.Name : "-", "<a title=\"" + ViewRes.Classes.Services.Modify + "\" href=\"/Categories/Edit/" + category.Id + "\"><span id=\"" + category.Id + "\" class=\"ui-icon ui-icon-pencil\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Details + "\" href=\"/Categories/Details/" + category.Id + "\"><span id=\"" + category.Id + "\" class=\"ui-icon ui-icon-search\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Delete + "\" href=\"#\"><span id=\"" + category.Id + "\" class=\"ui-icon ui-icon-trash\"></span></a>" } }).ToArray(); return(JqGrid <Category> .SetJsonData(totalPages, totalRecords, page, rowsModel)); }
public object RequestList(User userLogged, string sidx, string sord, int page, int rows, string filters) { int totalPages = 0; int totalRecords = 0; IQueryable <Company> companies; if (userLogged.Company.CompaniesType.Name == "Owner") { companies = GetAllRecords(); } else { companies = GetAllRecords().Where(c => c.Id == userLogged.Company_Id || c.CompanyAssociated_Id == userLogged.Company_Id); } companies = JqGrid <Company> .GetFilteredContent(sidx, sord, page, rows, filters, companies, ref totalPages, ref totalRecords); var rowsModel = ( from company in companies.ToList() select new { i = company.Id, cell = new string[] { company.Id.ToString(), "<a href=\"/Companies/Edit/" + company.Id + "\">" + company.Name + "</a>", company.CompanyAssociated == null ? "-" : company.CompanyAssociated.Name, company.Contact, company.Phone, company.CompaniesType.Name, "<a title=\"" + ViewRes.Classes.Services.Modify + "\"href=\"/Companies/Edit/" + company.Id + "\"><span id=\"" + company.Id + "\" class=\"ui-icon ui-icon-pencil\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Details + "\" href=\"/Companies/Details/" + company.Id + "\"><span id=\"" + company.Id + "\" class=\"ui-icon ui-icon-search\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Delete + "\"href=\"#\"><span id=\"" + company.Id + "\" class=\"ui-icon ui-icon-trash\"></span></a>", "<a title=\"" + "Crear Demográficos" + "\"href=\"#\"><span id=\"" + company.Id + "\" class=\"ui-icon ui-icon-copy\"></span></a>" } }).ToArray(); return(JqGrid <Company> .SetJsonData(totalPages, totalRecords, page, rowsModel)); }
public object RequestList(User userLogged, string sidx, string sord, int page, int rows, string filters) { int totalPages = 0; int totalRecords = 0; IQueryable <User> users; if (userLogged.Company.CompaniesType.Name == "Owner") { users = GetAllRecords(); } else { users = GetAllRecords().Where(u => u.Company_Id == userLogged.Company_Id || u.Company.CompanyAssociated_Id == userLogged.Company_Id); } users = JqGrid <User> .GetFilteredContent(sidx, sord, page, rows, filters, users, ref totalPages, ref totalRecords); var rowsModel = ( from user in users.ToList() select new { i = user.Id, cell = new string[] { user.Id.ToString(), "<a href=\"/Users/Edit/" + user.Id + "\">" + user.UserName + "</a>", user.FirstName + " " + user.LastName, user.Email, user.ContactPhone, user.Role.Name, "<a title=\"" + ViewRes.Classes.Services.Modify + "\" href=\"/Users/Edit/" + user.Id + "\"><span id=\"" + user.Id + "\" class=\"ui-icon ui-icon-pencil\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Details + "\" href=\"/Users/Details/" + user.Id + "\"><span id=\"" + user.Id + "\" class=\"ui-icon ui-icon-search\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Delete + "\" href=\"#\"><span id=\"" + user.Id + "\" class=\"ui-icon ui-icon-trash\"></span></a>" } }).ToArray(); return(JqGrid <User> .SetJsonData(totalPages, totalRecords, page, rowsModel)); }
public object RequestList(int country_id, string sidx, string sord, int page, int rows, string filters) { int totalPages = 0; int totalRecords = 0; IQueryable <State> states = GetByCountry(country_id); states = JqGrid <State> .GetFilteredContent(sidx, sord, page, rows, filters, states, ref totalPages, ref totalRecords); var rowsModel = ( from state in states.ToList() select new { i = state.Id, cell = new string[] { state.Id.ToString(), "<a href=\"/States/Edit/" + state.Id + "\">" + state.Name + "</a>", "<a title=\"" + ViewRes.Classes.Services.Modify + "\" href=\"/States/Edit/" + state.Id + "\"><span id=\"" + state.Id + "\" class=\"ui-icon ui-icon-pencil\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Details + "\" href=\"/States/Details/" + state.Id + "\"><span id=\"" + state.Id + "\" class=\"ui-icon ui-icon-search\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Delete + "\" href=\"#\"><span id=\"" + state.Id + "\" class=\"ui-icon ui-icon-trash\"></span></a>" } }).ToArray(); return(JqGrid <State> .SetJsonData(totalPages, totalRecords, page, rowsModel)); }
public object RequestList(string sidx, string sord, int page, int rows, string filters) { int totalPages = 0; int totalRecords = 0; IQueryable <ContactUs> contact = GetAllRecords(); contact = JqGrid <ContactUs> .GetFilteredContent(sidx, sord, page, rows, filters, contact, ref totalPages, ref totalRecords); var rowsModel = ( from cont in contact.ToList() select new { i = cont.Id, cell = new string[] { cont.Id.ToString(), cont.Name, cont.Company, cont.Date.ToString(ViewRes.Views.Shared.Shared.Date), "<a title=\"" + ViewRes.Classes.Services.Details + "\" href=\"/ContactUs/Details/" + cont.Id + "\"><span id=\"" + cont.Id + "\" class=\"ui-icon ui-icon-search\"></span></a>", "<a title=\"" + ViewRes.Classes.Services.Delete + "\" href=\"#\"><span id=\"" + cont.Id + "\" class=\"ui-icon ui-icon-trash\"></span></a>" } }).ToArray(); return(JqGrid <Age> .SetJsonData(totalPages, totalRecords, page, rowsModel)); }