Open tomkurian01 opened 7 years ago
Try to repeat
.WithFiltering(true)
.WithSorting(true);
on every column
Thanks but that didn't work.
Did you include the javascript?
<script src="~/MVCGridHandler.axd/script.js"></script>
Yes I have the script Here's my view:
@using MVCGrid.Web
<div class="row">
<div class="col-lg-12">
<div class="hpanel">
<div class="panel-heading">
<div class="panel-tools">
<a class="showhide"><i class="fa fa-chevron-up"></i></a>
<a class="closebox"><i class="fa fa-times"></i></a>
</div>
Candidates
</div>
<div class="panel-body">
@Html.Partial("_MVCGridToolbar", new Company.Web.Areas.Candidate.Models.MVCGridToolbarModel(){
MVCGridName = "CandidateGrid",
PageSize = true,
ColumnVisibility = true,
Export = true,
GlobalSearch = true
})
@Html.MVCGrid("CandidateGrid")
</div>
</div>
</div>
</div>
@section Scripts {
<script src="~/MVCGridHandler.axd/script.js"></script>
}
are you getting any errors in the browser developer console?
I have used the sample on the homepage (http://mvcgrid.net/) _MVCGridToolBar partial. A few features are working like the pull-down menu that allows you to pick the number of items per page and also global search is working.
However, the Sorting is not displaying, the Paging is not clickable and the pull-down for the fields that you can make visible and invisible the column will not allow me to click the check-box (greyed-out).
Here's the razor code:
And also my method:
And Finally my data retrieval method: