Tuesday, 9 October 2012

KendoUI open grid editor on double-click

Reblogged from Document workflow using CouchDB & HTML5:




Sometimes (many) you don’t want to use screen space creating a button for something that you can do with click, pinch, swipe… So, why do not use double click for opening a popup editor for grid entries?


KendoUI open grid editor with double-click


Lets assume that this is the definition of our grid.


 


var grid = $("#stocks_tbl").kendoGrid({
dataSource:{
data:[
{ name:"Apple", symbol:"AAPL" },
{ name:"Amazon", symbol:"AMZN" },
{ name:"Google", symbol:"GOOG" }
]
},
editable :"popup",
columns :[
{ field:"name", title:"Name" },
{ field:"symbol", title:"Tick" }
]
}).data("kendoGrid");
…


Read more… 102 more words




KendoUI open grid editor on double-click

No comments:

Post a Comment