|
<select id="CustomerID1" name="CustomerID">
<option value="VINET">VINET</option>
<option value="HANAR">HANAR</option>
<option value="SUPRD">SUPRD</option>
<option value="CHOPS">CHOPS</option>
</select>
<script type="text/javascript">
$(function () {
$("#CustomerID1").ejDropDownList({ change: "filter" });
$("#Grid").ejGrid({
//The datasource "window.gridData" is referred from 'http://js.syncfusion.com/demos/web/scripts/jsondata.min.js'
dataSource: window.gridData,
allowFiltering: true,
toolbarSettings: {
showToolbar: true,
toolbarItems: ["add", "edit", "delete", "update", "cancel"]
},
allowPaging: true,
columns: [
{ field: "OrderID", isPrimaryKey: true },
{ field: "CustomerID" },
{ field: "ShipCity" }
],
});
});
function filter(args) {
$("#Grid").ejGrid("instance").filterColumn("CustomerID", "equal", args.text, "and", true);
}
</script> |
|
<body>
<div id="Grid"></div>
<script id="template" type="text/template">
<table cellspacing="10">
<tr>
<td>
<input type="checkbox" class="nodetext" id="check1" />
</td>
</tr>
</table>
</script>
<script type="text/javascript">
$(function () {
$("#Grid").ejGrid({
//The datasource "window.gridData" is referred from 'http://js.syncfusion.com/demos/web/scripts/jsondata.min.js'
dataSource: window.gridData,
editSettings: {
allowEditing: true,
allowAdding: true,
allowDeleting: true,
editMode: "dialogtemplate",
dialogEditorTemplateID: "#template"
},
allowPaging: true,
columns: [
. . .
],
actionComplete: "complete"
});
});
function complete(args) {
$("#EmployeeID").ejNumericTextbox();
$("#Freight").ejNumericTextbox();
$("#ShipCity").ejDropDownList();
$("#check1").ejCheckBox();
if (args.requestType == "save" && args.rowData.check1) {
$("#Grid").find(".e-gridcontent tr:eq(" + args.selectedRow + ") td:eq(2)").css("background-color", "yellow");
}
}
</script>
</body> |
Hi!!!
|
<ej:Grid ID="OrdersGrid" runat="server" AllowPaging="True" >
<ClientSideEvents ActionComplete="complete" EndAdd="endAdd" EndDelete="endDelete" EndEdit="endEdit" />
<Columns>
. . .
</Columns>
<ToolbarSettings ShowToolbar="True" ToolbarItems="add,edit,delete,update,cancel"></ToolbarSettings>
</ej:Grid>
function complete(args) {
$("#btncountry").ejButton({
text: "template button",
click: function (args) {
alert('yes');
$("#Dialog").ejDialog("open");
}
});
function rowSelected(args) {
var textvalue = true;
$("#ShipCountry").val(args.data.ShipCountry);
$("#CountryCode").val(args.data.CountryCode);
var gridObj = $("#ShipGrid").data("ejGrid");
gridObj.clearSelection(args.rowIndex);
$("#Dialog").ejDialog("close");
}
}
</script>
|
|
<select id="CustomerID1" name="CustomerID">
<option value="VINET">VINET</option>
<option value="HANAR">HANAR</option>
<option value="SUPRD">SUPRD</option>
<option value="CHOPS">CHOPS</option>
<option value="clearFilter">CLEAR</option>
</select>
<script type="text/javascript">
$(function () {
$("#CustomerID1").ejDropDownList({ change: "filter" });
$("#Grid").ejGrid({
dataSource : window.gridData,
allowFiltering:true,
columns : [
{ field: "OrderID", isPrimaryKey: true },
{ field: "CustomerID" },
{ field: "ShipCity" }
],
actionComplete : "complete",
dataBound:"databound"
});
});
function databound(args){
this.element.find(".e-filterbar").hide();
}
function filter(args) {
$("#Grid").ejGrid("instance").filterColumn("CustomerID", "equal", args.text, "and", true);
if(args.text == "CLEAR")
$("#Grid").ejGrid("clearFiltering");
}
</script> |
Hi Christian,
Thanks for your patience.
As per your suggestion, we installed German Windows 10 and Office 2016 and checked your issue but we are unable to reproduce your reported problem “Sum of the Values in the Excelsheet remains Zero” when we bind Freight column as integer. Please refer to the video Demo that we have checked in German Office 2016.
If you have faced the issue while binding the integer column, we would like to set up a web meeting with you to look into this issue and provide a solution. Could you please let me know your availability for this? Our team will make every effort to have this scheduled on a date and time according to your convenience
Regards,Farveen sulthana T
|
@(Html.EJ().Grid<Object>("FlatGrid")
.Datasource((IEnumerable<object>)ViewBag.DataSource)
.AllowPaging()
.ClientSideEvents(eve => { eve.ActionComplete("complete"); })
.EditSettings(edit => { edit.AllowAdding().AllowDeleting().AllowEditing().TitleColumn("CustomerID").EditMode(EditMode.DialogTemplate).DialogEditorTemplateID("#template"); })
.Columns(col =>
{
col.Field("OrderID").HeaderText("Order ID").IsPrimaryKey(true).TextAlign(TextAlign.Right).Add();
col.Field("CustomerID").HeaderText("Customer ID").EditType(EditingType.String).Add();
col.Field("ShipCity").HeaderText("Ship City").EditType(EditingType.Dropdown).Add();
}))
<script id="template" type="text/template">
<table cellspacing="10">
<tr>
<td>Freight</td>
<td>
<input type="text" id="Freight" name="Freight" value="{{:Freight}}" />
</td>
</tr>
</table>
</script>
<script>
function complete(args) {
$("#EmployeeID").ejNumericTextbox();
$("#Freight").ejMaskEdit({name: "mask", inputMode: ej.InputMode.Text, maskFormat: "99-999-99999"});
$("#ShipCity").ejDropDownList();
}
</script> |