Try your search with a different keyword or use * as a wildcard.
@model CountryModel
@if (Model.Id > 0)
{
@await Html.PartialAsync("Table", new DataTablesModel
{
Name = "states-grid",
UrlRead = new DataUrl("States", "Country", new RouteValueDictionary { [nameof(StateProvinceSearchModel.CountryId)] = Model.StateProvinceSearchModel.CountryId }),
UrlDelete = new DataUrl("StateDelete", "Country", null),
Length = Model.StateProvinceSearchModel.PageSize,
LengthMenu = Model.StateProvinceSearchModel.AvailablePageSizes,
ColumnCollection = new List
{
new ColumnProperty(nameof(StateProvinceModel.Name))
{
Title = T("Admin.Configuration.Countries.States.Fields.Name").Text,
Width = "300"
},
new ColumnProperty(nameof(StateProvinceModel.Abbreviation))
{
Title = T("Admin.Configuration.Countries.States.Fields.Abbreviation").Text,
Width = "150"
},
new ColumnProperty(nameof(StateProvinceModel.Published))
{
Title = T("Admin.Configuration.Countries.States.Fields.Published").Text,
Width = "100",
ClassName = NopColumnClassDefaults.CenterAll,
Render = new RenderBoolean()
},
new ColumnProperty(nameof(StateProvinceModel.DisplayOrder))
{
Title = T("Admin.Configuration.Countries.States.Fields.DisplayOrder").Text,
Width = "100",
ClassName = NopColumnClassDefaults.CenterAll
},
new ColumnProperty(nameof(StateProvinceModel.Id))
{
Title = T("Admin.Common.Edit").Text,
Width = "100",
ClassName = NopColumnClassDefaults.Button,
Render = new RenderCustom("renderColumnEdit")
},
new ColumnProperty(nameof(StateProvinceModel.Id))
{
Title = T("Admin.Common.Delete").Text,
Width = "100",
Render = new RenderButtonRemove(T("Admin.Common.Delete").Text),
ClassName = NopColumnClassDefaults.Button
}
}
})
}
else
{
@T("Admin.Configuration.Countries.States.SaveBeforeEdit")
}