BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
Hi firendsI want that when I push Enter, the cell with value 6.00, this cell show 6.0%the problem is that it does show 600.0%
<ej-grid id="ProductsGrid" datasource="ViewBag.datasource" allow-selection="true" allow-paging="true" before-batch-save="batchsave" allow-filtering="true" height="400" width="@("100%")" cell-save="cellSave"
row-selected="rowSelected" row-deselected="rowDeselected" action-failure="updateFailure" action-complete="gridActionComplete"
row-selecting="rowSelecting"
locale="@(System.Globalization.CultureInfo.CurrentCulture.Name.ToString())" query-cell-info="queryCellInfo">
<e-filter-settings filter-type="Excel" />
<e-edit-settings allow-editing="true" edit-mode="Batch" show-confirm-dialog="true"></e-edit-settings>
<e-toolbar-settings show-toolbar="true" toolbar-items='@new List<string> {"update","cancel"}'></e-toolbar-settings>
<e-page-settings page-size="200"></e-page-settings>
<e-columns>
<e-column field="" type="checkbox" width="50"></e-column>
<e-column field="OrderID" header-text="IdProduct" text-align="Left" is-primary-key="true"></e-column>
<e-column field="EmployeeID" header-text="Product Number" text-align="Left" allow-editing="false"></e-column>
<e-column field="CustomerID" header-text="Description" text-align="Left" allow-editing="false"></e-column>
<e-column field="Freight" header-text="Tasa de asignación" allow-editing="true" edit-type="NumericEdit" format="{0:P1}"
numeric-edit-options="@new Syncfusion.JavaScript.Models.EditorProperties { DecimalPlaces = 2, ShowSpinButton=false, MinValue=0 }"></e-column>
</e-columns>
</ej-grid>
<script>
function batchsave(args) {
var changes = args.batchChanges.changed;
for (var i = 0; i < changes.length; i++) {
if (changes[i].Freight) {
args.batchChanges.changed[i].Freight = changes[i].Freight / 100;
}
}
}
</script> |