ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Crud Grid cells contain blank values, but values display if field is dragged to group value also search works on field that display no value
Title:
B
I
{code}
?
The grid loads the correct number of records, but the only the Id and Name field which I added after based on you demo show values. If however I drag the column to the group box above then the value appears. Also the search works, even though in the grid you can't see the data. I am basing this off your AweRazorPages Crud Grid demo. I have spent several days trying to work this out and my data is there, so I am at a loss. I also have an issue with my popup loading with my index page, but I saw something about the _Layout.cshtml impacting it, so I will try to find that again. My purchase of this for a client is based on being able to display a working demo of their site with this grid. My project is all Razor pages and a couple of controllers for getting the data out of an IEnumerable class that is loaded from a file upload , Net 5.0, DLLs and JS from the razor demo. I did this on my code and your demo checking the return for x and the values are all there that should be. JsonResult x = new JsonResult(new GridModelBuilder<ClientTestGrid>(items, g) Id and Name display all the other fields don't. Name is in the same Entity class as the other fields, and again very similar to your Razor demo. Any help would be appreciated. @(Html.Awe().Grid("ClientTestGrid") .Url(Url.Page("","GridGetItems")) .Mod(o => o.PageInfo().PageSize()) .Parent("txtSearch", "search") .Parameter("filename", Model.FileName) .Parameter("invoicenumber", Model.SelectedInvoice) .Height(350) .Columns( new Column { Bind = "Id", Width = 55 }, new Column { Bind = "Name", Width = 55 }, new Column { Bind = "EXPFEEINV_ADJ_TYPE" }, new Column { Bind = "LINE_ITEM_NUMBER" }
Save Changes
Cancel
Frank Mikulak
asked at 31 Jan 2022
It's not possible to find the issue with the info and code provided, please follow the instructions here: https://www.aspnetawesome.com/learn/mvc/CommonProblems#Isolate-the-problem and post the download link so we could have a look
at 31 Jan 2022
Omu
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK