- Home
- Forum
- ASP.NET MVC
- Production on Azure not showing Grids a all. It is getting even more bizarre
Production on Azure not showing Grids a all. It is getting even more bizarre
Environment:
VS2017 Ent
SF Version 16.1.0.24
MVC 5
Azure application Deployment
While locally both Debug and Release builds display the Syncfusion Grids, when deployed out to the Azure production site, the Grids do not render. There are no Java Script errors. The Grids just do not display. As far as we can tell, all files are present on the production site.
Do you have any suggestions as to what we can do.
SIGN IN To post a reply.
3 Replies
TS
Thavasianand Sankaranarayanan
Syncfusion Team
March 6, 2018 12:49 PM UTC
Hi Ibrahim,
Before proceeding to your query please provide the following details for better assistance.
- Share screen shot or video demonstration of the issue.
- Share Grid code example both server and client end.
- If possible share the azure link to check issue in our end.
- Please ensure that the “jsrender.min.js” file referred in your azure application. Because if we not refer this file then Grid is not display.
Regards,
Thavasianand S.
GM
Gangabharathy Murugasen
Syncfusion Team
March 7, 2018 04:46 AM UTC
From: Ibrahim Malluf [mailto:[email protected]]
Sent: Tuesday, March 6, 2018 2:57 PM
Subject: RE: Syncfusion support community forum 136246, Production on Azure not showing Grids a all. It is getting even more bizarre, has been updated.
Sent: Tuesday, March 6, 2018 2:57 PM
Subject: RE: Syncfusion support community forum 136246, Production on Azure not showing Grids a all. It is getting even more bizarre, has been updated.
Hello
The following URL will give you a page with a View that contains a grid. There will be no rows of data since you cannot log in.
Be aware that there are 6 views with grids. None of them are displaying on the Azure site. They all display locally in the development environment.
Jsrender.min.js is in the scripts folder as expected.
I have, as suggested attached a mp4 video displaying the issues I am having with the Syncfusion Grid.
Here is the render code for the grid:
@(Html.EJ().Grid<MCSI.NMCFISReports.Models.SpecialEvent>
("FlatGrid")
.Datasource(ds => ds.Json((IEnumerable<MCSI.NMCFISReports.Models.SpecialEvent>)Model.SpecialEvents)
.CrudURL("SpecialEvents/CrudUrl").Adaptor(AdaptorType.RemoteSaveAdaptor))
.EditSettings(edit => { edit.AllowAdding().AllowEditing().AllowDeleting().EditMode(EditMode.Dialog).ShowDeleteConfirmDialog(); })
.AllowSorting()
.AllowPaging()
.IsResponsive()
.SelectionType(SelectionType.Single)
.ToolbarSettings(toolBar => toolBar.ShowToolbar().ToolbarItems(items =>
{
items.AddTool(ToolBarItems.ExcelExport);
//items.AddTool(ToolBarItems.WordExport);
//items.AddTool(ToolBarItems.PdfExport);
items.AddTool(ToolBarItems.Add);
items.AddTool(ToolBarItems.Edit);
items.AddTool(ToolBarItems.Delete);
}))
.Mappers(map => map.ExportToExcelAction("SpecialEvents/ExportToExcelAsync")
.ExportToPdfAction("SpecialEvents/ExportToPdfAsync")
.ExportToWordAction("ExportToWordAsync"))
.Locale("en-US")
.Columns(col =>
{
col.Field(p => p.Id).HeaderText("ID").TextAlign(TextAlign.Left).IsPrimaryKey(true).Add();
col.Field(p => p.EventName).HeaderText("EventName").TextAlign(TextAlign.Left).Add();
col.Field(p => p.EventDate).HeaderText("EventDate").TextAlign(TextAlign.Right).Width(80).Format("{0:MM/dd/yyyy}")
.EditType(EditingType.Datepicker).ValidationRules(v => v.AddRule("date", true)).Add();
col.Field(p => p.AdmissionPrice).Format("{0:c}").HeaderText("Admission Price").TextAlign(TextAlign.Left).Add();
col.Field(p => p.Attendance).Format("{0:n}").HeaderText("Attendance").TextAlign(TextAlign.Right).EditType(EditingType.NumericEdit).Add();
col.Field(p => p.EventLocation).HeaderText("Event Location").TextAlign(TextAlign.Left).Add();
col.Field(p => p.Description).HeaderText("Description").TextAlign(TextAlign.Left).Add();
col.Field(p => p.Street).HeaderText("Street").TextAlign(TextAlign.Left).Add();
col.Field(p => p.City).HeaderText("City").TextAlign(TextAlign.Left).Add();
col.Field(p => p.State).HeaderText("State").TextAlign(TextAlign.Left).Add();
col.Field(p => p.Zip).HeaderText("Zip").TextAlign(TextAlign.Left).Add();
col.Field(p => p.Sponsors).HeaderText("Sponsors").TextAlign(TextAlign.Left).Add();
col.Field(p => p.AdmissionFeesReceived).Format("{0:c}").HeaderText("Admission Fees Received").TextAlign(TextAlign.Left).Add();
col.Field(p => p.UnidentifiableAnonymousContributions).Format("{0:c").HeaderText("Unidentifiable Anonymous Contributions").TextAlign(TextAlign.Left).Add();
col.Field(p => p.Expenditures).Format("{0:c}").HeaderText("Expenditures").TextAlign(TextAlign.Left).Add();
})
@*//.ClientSideEvents(eve => eve.ActionFailure("OnActionFailure"));
//.ClientSideEvents(eve => { eve.ActionComplete("complete");*@
@*})*@
)
</div>
<script>
function OnActionFailure(args) {
alert(args.error.status + " : " + args.error.statusText);
}
</script>
SyncfusionGrid
TS
Thavasianand Sankaranarayanan
Syncfusion Team
March 7, 2018 12:51 PM UTC
Hi Ibrahim,
We have checked your given hosted link but the link is not opened.
Refer the below screen shot while run your given URL path.
We have prepared a sample in visual studio 2017 with Essential Studio version 16.1.0.24 and we have hosted that in azure but we able to see the Grid rendering.
Azure link: http://apphostedbysync.azurewebsites.net/
Note: if you still face the same issue then please connect to a web meeting that we requested in your incident.
Regards,
Thavasianand S.
SIGN IN To post a reply.
- 3 Replies
- 3 Participants
-
IM Ibrahim Malluf
- Mar 5, 2018 10:22 PM UTC
- Mar 7, 2018 12:51 PM UTC