ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Grid with .Mod(o => o.Loading() display undefined before render rows when process takes time
Title:
B
I
{code}
?
each time my IIS process restart or I force a refresh with CTRL+F5, the grid in my view (see below) canvas displays a huge "undefined" and at the end when the rows are rendered, the undefined remains with a huge white square. When I press the Grid data refresh button, the grid is refreshed and "undefined" is gone for good until next site Refresh. Any help would be appreciated. Thanks <div > @(Html.Awe().AjaxRadioList("eventofficeinput") .Odropdown(o => o.AutoSelectFirst()) .Url(Url.Action("GetEventOfficeListWithMappingLookup", "EventOffice")) .CssClass("border-round long-text")) </div> @(Html.Awe().Grid("MevGrid") .Mod(o => o.Loading().PageInfo().ColumnsSelector().ColumnsAutohide()) .Url(Url.Action("GridGetItems", "MetricValue")) .Resizable() .Groupable(false) .Paging(true) .PageSize(30) .Reorderable() .Parent("eventofficeinput", "eventofficeId") .Height(550) .Columns( new Column { Bind = "Id", Width = 55, Hidden = true }, new Column { Header = Localizer["Metric"], Bind = "MetricFullName", ClientFormat = ".MetricFullName", Width = 250 }.Mod(o => o.Nohide()), new Column {Header = Localizer["Order"], Bind = "MetricOrder", ClientFormat = ".MetricOrder", Width = 50, Sort = Sort.Desc}.Mod(o => o.Nohide()), new Column { Header = Localizer["ParentMetric"], Bind = "ParentMetricFullName", ClientFormat = ".ParentMetricFullName", Width = 200 }.Mod(o => o.Nohide()), new Column { Header = Localizer["FiscalYear"], Bind = "FiscalYear", ClientFormat = ".FiscalYear", Width = 90 }, new Column { Header = Localizer["FiscalPeriod"], Bind = "FiscalPeriod", ClientFormat = ".FiscalPeriod", Width = 90 }, new Column { Header = Localizer["AmountRc"], Bind = "AmountRc", ClientFormat = ".AmountRc", Width = 80 }.Mod(o => o.Nohide()), new Column { Header = Localizer["AmountRc"], Bind = "AmountRc", ClientFormat = ".AmountRc", Width = 80 }.Mod(o => o.Nohide()), new Column { ClientFormat = GridUtils.EditFormatForGrid("MevGrid"), Width = 50 }.Mod(o => o.Nohide()), new Column { ClientFormat = GridUtils.DeleteFormatForGrid("MevGrid"), Width = 50 }.Mod(o => o.Nohide())))
Save Changes
Cancel
vRITHNER
asked at 14 Sep 2017
anything similar to this demo: http://demo.aspnetawesome.com/GridNoRecordsFoundCustomLoadingDemo when you search for "asdf" (type asdf + enter in person textbox)
at 14 Sep 2017
Omu
No, in my case, the message is "undefined"
at 15 Sep 2017
vRITHNER
it should be "No records found", from `awem.js` `clientDict.NoRecFound`, you can try to reproduce your problem in MinSetupCore demo
at 15 Sep 2017
Omu
also check if you get any js errors in the console
at 15 Sep 2017
Omu
I think you're setting the awem.clientDict like in the prodinner demo, and you need to also add the NoRecFound property to that object
at 15 Sep 2017
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