javascript - Clear or Select the kendo grid cell on click -


i have kendo grid - hours column multiple weeks (i using clienttemplate display it) have editor template edit columns. have given edit mode incell requirement select cell on click of cell. have tried :

function edit(e) {      var input = e.container.find("input");               input.select();        } 

and

var currentdataitem = e.sender.dataitem(this.select()); 

but no use. please help.

you can like:

$("#grid").kendogrid({ datasource: {     type: "json",       pagesize: 10,     serverpaging: true,     transport: {         read: "http://whatever"     } }, selectable: "cell", pageable: true, columns: ["productid", "productname"], change: function() {       var dataitem = this.datasource.view()[this.select().closest("tr").index()];       alert(dataitem.unitprice); } } 

Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -