Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Link button to Kendo Grid add item event

$
0
0
Hello Austin,

Please take a look at this Telerik Dojo illustrating how to add a row via an external button.

Here's the code I used for the Kendo button and my add function:
$("#btnCreate").kendoButton({
    click: add
 });
 
 
function add(){
    var grid = $("#grid").data("kendoGrid");
    grid.addRow();
}

addRow() adds an empty data item to the Kendo Grid. 
 

Hope this helps.

Regards,
Patrick
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 

Viewing all articles
Browse latest Browse all 84751

Trending Articles