or
function BindData (myArray){
$(document).ready(function() {
$("#grid").kendoGrid({
dataSource: {
data: myArray,
pageSize: 10
},
change: onChange,
selectable: "multiple",
navigatable: true,
groupable: true,
sortable: true,
pageable: {
refresh: true,
pageSizes: true
},
columns: [ {
field: "firstname",
width: 90,
title: "firstname:"
},
{
field: "lastname",
width: 90,
title: "lastname:"
}
]
});
});
}
function onChange(arg) {
var selected = $.map(this.select(), function(item) {
return $(item).text();
});
;
sources.people.select(1)
kendoConsole.log("Selected: " + selected.length + " item(s), [" + selected.join(", ") + "]");
}
Hi,
I want to change the default text for update and cancel commands when inline editing (edit and destroy commands are not problem). How can I do that?
Also, is it possible to have both inline and popup editing in the same row (but with different commands) ?
Thanks
(sorry for my bad english:)
<
script
>
$(document).ready(function() {
var dataSource = new kendo.data.DataSource({
pageSize: 8,
transport: {
read: "tours_lista.php",
dataType: "jsonp"
},
schema: {
data: "data",
total: "data.length"
}
});
$("#pager").kendoPager({
dataSource: dataSource,
});
$("#listView").kendoListView({
dataSource: dataSource,
template: kendo.template($("#template").html())
});
});
</
script
>
<
div
id
=
"intro"
>
<
H3
>TOURS</
H3
>
<
div
id
=
"listView"
></
div
>
<
div
id
=
"pager"
class
=
"k-pager-wrap"
></
div
>
<
script
type
=
"text/x-kendo-tmpl"
id
=
"template"
>
<
div
class
=
"product"
>
<
a
class
=
"t-link"
href
=
"inicio.php?action=detalle&tourid=${recid}"
><
img
src
=
"controlc/test/${main_pic}"
title
=
"Ver detalles de ${tit_esp}"
/></
a
>
<
h3
>${tit_esp}</
h3
>
<
dl
>
<
dt
>Adulto: </
dt
>
<
dd
>$ ${rate_adult}</
dd
>
<
dt
>Niño: </
dt
>
<
dd
>$ ${rate_child}</
dd
>
</
dl
>
<
div
style
=
"text-align:right;float:right;border:0px solid red;padding-top:7px;padding-left:5px;width:250px;height:30px;"
>
</
div
>
</
div
>
</
script
>
</
div
>
<!-- end .intro -->