I just have a couple of questions regarding the grid declaration in Razor.
Consider this piece of code:
@(Html.EJ().Grid<EmployeeView>("CustomGrid")
.Datasource((IEnumerable<object>)ViewBag.datasource1)
.AllowPaging()
.EditSettings(edit => { edit.AllowAdding().AllowDeleting().AllowEditing().EditMode(EditMode.ExternalFormTemplate).ExternalFormTemplateID("#template"); })
1. What is "EmployeeView"?
2. Do I need to provide a datasource, considering that the grid would be empty when the page renders and I am the one who are going to fill it with data?
Thank you!!!
PD: This is a follow up from
this thread.