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

grid.insertRow() not defined

3 Answers 64 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Marcus
Top achievements
Rank 1
Marcus asked on 31 Dec 2014, 03:04 PM
hello
in the Help Document for the Grid

http://www.telerik.com/help/aspnet-mvc/telerik-ui-components-grid-client-api-and-events.html#insertRow


the insertRow function is described


insertRow object example

var grid = $("#Grid").data("tGrid");
var product = { ProductName: "KeyBoard", UnitPrice: 53.20};
grid.insertRow(product);



But in the current version of Kendo Ui MVC there is no function
insertRow()


Why? Is there an replacement?


Regards and best wishes for the new year

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 02 Jan 2015, 10:55 AM
Hi,

The documentation you have linked is for Telerik Extensions for ASP.NET MVC which has been discontinued. The documentation of Kendo UI Grid is available here. The equivalent of the insertRow method is addRow.

Regards,
Atanas Korchev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Marcus
Top achievements
Rank 1
answered on 02 Jan 2015, 11:22 AM
Thanks.  But how can i add an object (ex. product) without keyboard interaction.

I have an combobox outside the grid. the user select one product from the list of products,
and then i will insert and save this product in the order.products grid.

Regards
Marcus
0
Atanas Korchev
Telerik team
answered on 05 Jan 2015, 09:07 AM
Hello Marcus,

In that case you should use the add or insert method of the grid's data source.

Regards,
Atanas Korchev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Marcus
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Marcus
Top achievements
Rank 1
Share this question
or