When I switch on column sorting my View Model is not returned

When I switch on column sorting my View Model is not returned

eddieb7eddieb7 Posts: 4Questions: 2Answers: 1

I have a view model which contains a List<RecordStructure>.

I am displaying all elements using the DisplayFor, HiddenFor, TextBoxFor and CheckBoxFor (MVC5).

The DataTable returns all values to my ViewModel successfully on a Post, but ii I switch on sorting ("bSort": true) the DataTable no longer returns the ViewModel.

Any advice would be appreciated.

Answers

  • eddieb7eddieb7 Posts: 4Questions: 2Answers: 1

    If I set "paging":false, then it still returns the ViewModel, but the combination of Sorting and Paging doesn't return the ViewModel.

This discussion has been closed.