hi...
data from my data source as follows.
@(Html.EJ().Grid<object>("PersonelListele")
.Datasource(datasource =>datasource.Json(ViewBag.Personel).Adaptor(AdaptorType.RemoteSaveAdaptor))
.AllowSorting()
.AllowPaging()
.AllowTextWrap()
.AllowResizeToFit()
.EditSettings(edit => { edit.AllowAdding().AllowDeleting().AllowEditing().EditMode(EditMode.InlineForm); })
.PageSettings(p => { p.PageSize(15); })
.ToolbarSettings(toolbar =>
{
toolbar.ShowToolbar().ToolbarItems(items =>
{
items.AddTool(ToolBarItems.Add);
items.AddTool(ToolBarItems.Edit);
items.AddTool(ToolBarItems.Delete);
items.AddTool(ToolBarItems.ExcelExport);
items.AddTool(ToolBarItems.PdfExport);
items.AddTool(ToolBarItems.PrintGrid);
});
})
.Columns(col =>
{
col.Field("ID").HeaderText("Sistem ID").Template("#SistemID").Width(75).IsPrimaryKey(true).Add();
col.Field("Tc").HeaderText("Tc").Width(100).Add();
col.Field("Adi").HeaderText("Ad").Add();
col.Field("Soyadi").HeaderText("Soyad").TextAlign(TextAlign.Left).Add();
col.Field("Lokasyon").HeaderText("Lokasyon").TextAlign(TextAlign.Left).Add();
col.Field("Gorev").HeaderText("Görev").Add();
col.Field("Gsm").HeaderText("Gsm").Add();
col.Field("Mail").HeaderText("E-Mail").TextAlign(TextAlign.Left).Add();
}))