DLLs |
Syncfusion.EJ.dll
Syncfusion.EJ.Mvc.dll |
Script files |
Syncfusion script files:
ej.web.all.min.js
ej.unobtrusive.min.js
External Script files:
jquery.min.js
jquery.easing.min.js
jquery.globalize.min.js
jsrender.min.js
jquery.validate.min.js |
CSS files |
ej.widgets.core.min.css |
[web.config]
<compilation debug="true" targetFramework="4.5" >
<assemblies>
<add assembly="Syncfusion.EJ, Version= 14.1400.0.46, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />
<add assembly="Syncfusion.EJ.Mvc, Version= 14.1400.0.46, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />
</assemblies>
</compilation> |
<Template>
<script type="text/x-jsrender" id="headerTemplate">
...
</script>
<Grid>
<div class="row" style="width: 100%; padding-bottom: 5px;">
@(Html.EJ().Grid<ERSCore.Models.LineItem>("RequestView_data")
. . . col.Field("Attachment").HeaderTemplateID("#headerTemplate").HeaderTextAlign(TextAlign.Center).Template("#columnTemplate").Width(50).Add();
.. . .
}))
</div>
}
}
</div> |
<headerTemplate>
<script type="text/x-jsrender" id="headerTemplate">
...
</script>
<columnTemplate>
<script type="text/x-jsrender" id="columnTemplate">
{{if Attachment }}
<img style="width: 24px; height: 24px; cursor: pointer" src="../Content/mail_attachment.png" onclick="DownloadAttachment(this)" alt="{{:Attachment}}" id="{{:ItemCode}}_{{:DocEntry}}" />
{{/if}}
</script>
<Grid>
<div class="row" style="width: 100%; padding-bottom: 5px;">
@(Html.EJ().Grid<ERSCore.Models.LineItem>("RequestView_data")
. . . col.Field("Attachment").HeaderTemplateID("#headerTemplate").HeaderTextAlign(TextAlign.Center).Template("#columnTemplate").Width(50).Add();
.. . .
}))
</div>
}
}
</div>
|
[CS]
public ActionResult GridFeatures()
{
var DataSource = new NorthwindDataContext().OrdersViews.ToList();
ViewBag.datasource = DataSource;
//the object references passed from controller to view page
return View(new Test());
}
|