hello How do I get all the values?ü
I found this code but I did not get the values
thank you
$("#GridProductStores").ejGrid("getRows");
$("#GridProductPrices").ejGrid({
dataSource: data,
allowPaging: true,
allowSorting: true,
pageSettings: { pageSize: 8 },
allowFiltering: true,
height: "150px",
isResponsive: true,
isResponsive: true,
editSettings: { allowEditing: true, allowAdding: true, allowDeleting: true, },
toolbarSettings: { showToolbar: true, toolbarItems: [ej.Grid.ToolBarItems.Add, ej.Grid.ToolBarItems.Edit, ej.Grid.ToolBarItems.Delete, ej.Grid.ToolBarItems.Update, ej.Grid.ToolBarItems.Cancel] },
contextMenuSettings: {
enableContextMenu: true, contextMenuItems: [],
customContextMenuItems: [
{ id: 'delete', text: "Seçili Hareketi Sil" },
]
},
columns: [
{ field: "ProductID", visible: false },
{ field: "PriceID", visible: false },
{ field: "Name", headerText: "Fiyat Adı", width: 80, priority: 2 },
{ field: "Price", headerText: "Fiyat", width: 30, priority: 2 },
{ field: "Currency", headerText: "Döviz", width: 30, priority: 2 },
]
});
ajax
var prices = $("#GridProductPrices").ejGrid("getRows");
$.ajax({
url: '/Product/AddProduct',
data: JSON.stringify({
prices : prices
}),
async: false,
cache: false,
dataType: "json",
type: "POST",
contentType: "application/json; charset=utf-8",
complete: function () {
},
success: function (result) {
},
error: function (e) {
}
});