Multi tab datatable doesn't display data

Multi tab datatable doesn't display data

Nazanin_ebNazanin_eb Posts: 12Questions: 3Answers: 0

I have created multi tab datatable, but the table doesn't show data. I debugged and data in Ajax success function is ok but it doesn't display in table.
http://live.datatables.net/nuzefufi/1/

Answers

  • tangerinetangerine Posts: 3,350Questions: 37Answers: 394

    Your test case is showing numerous browser console errors.

  • Nazanin_ebNazanin_eb Posts: 12Questions: 3Answers: 0

    How can the server side code be tested? I have controller action in .net core project.

  • Nazanin_ebNazanin_eb Posts: 12Questions: 3Answers: 0
     public IActionResult GetCategoryById(int id, int languageId = 0)
            {
                var categoryViewModel = _categoryRepository.GetCategory(id, languageId);
                return Json(new { data = categoryViewModel });
            }
    
            [HttpGet]
            public IActionResult Edit(int id)
            {
                ViewData["categoryId"] = id;
    
                return View();
            }
    

    The remaining errors are due to the url used in the Ajax section.

This discussion has been closed.