or
categoryAxis: {
field: "date",
labels: {
dateFormats: {
hours: "MMM dd h tt"
}
}
}
<
select
id
=
"mlstProdTypes"
multiple
data-bind
=
"source: prodTypesList, value: filter.prodTypes"
data-text-field
=
"name"
data-value-field
=
"id"
class
=
"prodTypesList"
></
select
>
filter.prodTypes is defined as []. Even though I have specified data-value-field, selectedItem { name: "", id: "" } added to filter.prodTypes instead of adding only the "id"
Please help how to get back only the selected item's data-value-field instead of the selected item ....
Thanks
Aparna
<
div
>
<
table
id
=
"grid1"
>
...
</
table
>
<
table
id
=
"grid2"
>
...
</
table
>
</
div
>
<
script
>
$(document).ready(function() {
$("#grid1").kendoGrid({
height: 200,
scrollable: false
});
$("#grid2").kendoGrid({
height: 200,
scrollable: false
});
});
</
script
>
//I have already tried using grid.dataSource.data() instead of view(), but it doesn't help)
var
dataItems = grid.dataSource.view();
for
(i = 0; i < dataItems.length; i++) {
var
dataItem = dataItems[i];
dataItem.Amount = dataItem.OriginalAmount;
dataItem.IsIncluded =
true
;
dataItem.dirty =
true
;
}
grid.dataSource.fetch();
//This shows the dataSource's changed values in the grid
<
div
data-role
=
"footer"
>
<
div
data-role
=
"tabstrip"
>
<
a
href
=
"/Clients"
data-icon
=
"contacts"
>Clients</
a
>
<
a
href
=
"/Home"
data-icon
=
"organize"
>Tickets</
a
>
<
a
href
=
"/Settings"
data-icon
=
"settings"
>Settings</
a
>
</
div
>
</
div
>