I have a project where I am using the ejs-grid control.
I have it working well on one page within the application, but when using it on a second page I am having problems.
The grid partially renders on the screen in that there is the correct number of rows on the grid but all the grid lines are empty.
I am using the following:
<ejs-grid id="Grid" dataSource="ViewBag.Results" height="380" allowSorting="true" allowTextWrap="true" width="auto">
<e-grid-columns>
<e-grid-column field="VersionVersion" headerText="FHIR Version" width="30" ></e-grid-column>
<e-grid-column field="Name" headerText="Package Name" width="50"></e-grid-column>
<e-grid-column field="Description" headerText="Description" width="120"></e-grid-column>
<e-grid-column headerText="Action" width="30" template="#commands"></e-grid-column>
</e-grid-columns>
</ejs-grid>
Where ViewBag.Results is List<Version> VersionList
and Version is defined as
public partial class Version
{
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("version")]
public string VersionVersion { get; set; }
[JsonProperty("description")]
public string Description { get; set; }
[JsonProperty("url")]
public Uri Url { get; set; }
public SyncStatusValue SyncStatus { get; set; }
}
As the grid has the correct numbers of rows, I am confident that the populated list is being used. The fields within the grid columns are correct so I dont know why the data is not displaying.
Any ideas?