<style type="text/css" class="cssStyles">
.Expand:before
{
content:"\e627";
}
.e-toolbar > .e-horizontal .e-hover#Grid_Expand { // Toolbar list item id
background: none;
border-color: transparent;
}
</style>
<script type="text/javascript">
$(function () {
$("#Grid").ejGrid({
dataSource:window.dataSource,
toolbarSettings: { showToolbar: true,customToolbarItems:["Expand"], toolbarItems: [ej.Grid.ToolBarItems.Add, ej.Grid.ToolBarItems.Edit, ej.Grid.ToolBarItems.Delete, ej.Grid.ToolBarItems.Update, ej.Grid.ToolBarItems.Cancel] },
. . . . .
});
</script> |
<style type="text/css" class="cssStyles">
.add:before {
margin-left: -9px;
margin-top: -9px;// Toolbar icon
content: url("Images/holiday.png");
}
.e-toolbar > .e-horizontal .e-hover#ctl00_MainContent_Grid1_Add {
background: none; //prevented the default hover coloring
border-color: transparent;
}
</style>
<ej:Dialog ID=”basicDialog” runat=”server” ShowOnInit=false Title=”Dialog”>
<DialogContent>// dialog content
<div class=”cnt”>
Hi ,Welcome
</div>
</DialogContent>
</ej:Dialog>
<ej:Grid ID=”Grid1” AllowFiltering=”True” AllowPaging=”True”
runat=”server” AllowScrolling=”true” GridLines=”Vertical”>
<Columns>
<ej:Column Field=”OrderDate” HeaderText=”Order Date” Width=”100” TextAlign=”Right” Format=”{0:MM/dd/yyyy}” EditType=”Datepicker” />
<ej:Column Field=”Verified” EditType=”Boolean” Width=”80”></ej:Column>
</Columns>
<ToolbarSettings ShowToolbar=”True” ToolbarItems=”add,edit,delete,update,cancel”>
<CustomToolbarItem>//Custom toolbar with template
<ej:CustomToolbarItem TemplateID=”#Add” />
</CustomToolbarItem>
</ToolbarSettings>
</ej:Grid>
<script>
function openDialog() {//open dialog while press the toolbar icon
var obj = $(“#<%=basicDialog.ClientID%>”).ejDialog(“instance”)
obj.open();
}
</script> |
DLLs |
Syncfusion.EJ.dll
Syncfusion.EJ.Web.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
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.2400.0.26, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />
<add assembly="Syncfusion.EJ.Web, Version= 14.2400.0.26, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />
</assemblies>
</compilation> |