This is a migrated thread and some comments may be shown as answers.

[Solved] Can create button outsite gird to add new row?

1 Answer 843 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lavie
Top achievements
Rank 1
Lavie asked on 28 Oct 2014, 04:47 PM
Hi,
Can create button outsite gird to add new row?I dont want to use toolbar because It must inside grid container.Right?Please check my attachment.When click button Add Location.The new row will insert into grid or popup display to fill data and after saving the grid will reload new data?

Thanks

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 29 Oct 2014, 12:55 PM
Hello Lavie,


You could use the addRow method of the Grid API to achieve this. Here is an example click handler for the custom button outside the Grid.
E.g.
function onClick() {
  $("#grid").data("kendoGrid").addRow();
}

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Lavie
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or