In Datatable data is not showing in nopcommerce 4.3

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 years ago
In nopcommerce 4.3 datatable data is not showing while data is getting perfectly (check by debug).

For more clear lets see the image,

https://i.stack.imgur.com/VI1Jp.png


Here is my view code,

@await Html.PartialAsync("Table", new DataTablesModel
{
    Name = "caratmaster-grid",
    UrlRead = new DataUrl("Index", "CaratMaster", null),
    Length = Model.PageSize,
    LengthMenu = Model.AvailablePageSizes,
    ColumnCollection = new List<ColumnProperty>
    {
        new ColumnProperty(nameof(Nop.Web.Areas.Admin.Models.CaratMaster.CaratMasterModel.Carat))
        {
            Title = T("Admin.CaratMaster.Fields.Carat").Text,
            Width = "200"
        },
        new ColumnProperty(nameof(Nop.Web.Areas.Admin.Models.CaratMaster.CaratMasterModel.Description))
        {
            Title = T("Admin.CaratMaster.Fields.Description").Text,
            Width = "200"
        },
        new ColumnProperty(nameof(Nop.Web.Areas.Admin.Models.CaratMaster.CaratMasterModel.Id))
        {
            Title = T("Admin.Common.Edit").Text,
            Width = "100",
            ClassName = NopColumnClassDefaults.Button,
            Render = new RenderButtonEdit(new DataUrl("Edit"))
        }
    }
})
3 years ago
Did you debug (put breakpoint) in the Controller method?
2 years ago
I  am facing the same issue the data is being returned from the model yet it doesn't reflect in the View
2 years ago
shz111 wrote:
I  am facing the same issue the data is being returned from the model yet it doesn't reflect in the View

Are you getting any console error?
Give more details please.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.