Try your search with a different keyword or use * as a wildcard.
@model PollModel
@if (Model.Id > 0)
{
@await Html.PartialAsync("Table", new DataTablesModel
{
Name = "answers-grid",
UrlRead = new DataUrl("PollAnswers", "Poll", new RouteValueDictionary { [nameof(PollAnswerSearchModel.PollId)] = Model.PollAnswerSearchModel.PollId }),
UrlUpdate = new DataUrl("PollAnswerUpdate", "Poll", new RouteValueDictionary { [nameof(PollAnswerSearchModel.PollId)] = Model.PollAnswerSearchModel.PollId }),
UrlDelete = new DataUrl("PollAnswerDelete", "Poll", null),
Length = Model.PollAnswerSearchModel.PageSize,
LengthMenu = Model.PollAnswerSearchModel.AvailablePageSizes,
ColumnCollection = new List
{
new ColumnProperty(nameof(PollAnswerModel.Name))
{
Title = T("Admin.ContentManagement.Polls.Answers.Fields.Name").Text,
Width = "300",
Editable = true,
EditType = EditType.String
},
new ColumnProperty(nameof(PollAnswerModel.NumberOfVotes))
{
Title = T("Admin.ContentManagement.Polls.Answers.Fields.NumberOfVotes").Text,
Width = "100"
},
new ColumnProperty(nameof(PollAnswerModel.DisplayOrder))
{
Title = T("Admin.ContentManagement.Polls.Answers.Fields.DisplayOrder").Text,
Width = "100",
Editable = true,
EditType = EditType.Number
},
new ColumnProperty(nameof(PollAnswerModel.Id))
{
Title = T("Admin.Common.Edit").Text,
Width = "200",
ClassName = NopColumnClassDefaults.Button,
Render = new RenderButtonsInlineEdit()
},
new ColumnProperty(nameof(PollAnswerModel.Id))
{
Title = T("Admin.Common.Delete").Text,
Width = "100",
ClassName = NopColumnClassDefaults.Button,
Render = new RenderButtonRemove(T("Admin.Common.Delete").Text)
}
}
})
@T("Admin.Common.AddNewRecord")
}
else
{
@T("Admin.ContentManagement.Polls.Answers.SaveBeforeEdit")
}