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

Telerik Rad Grid Add New Row on Client Side

1 Answer 677 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Senthil
Top achievements
Rank 1
Senthil asked on 23 Dec 2014, 04:52 AM
Hi,
How to add new row in radgrid in client side. I have tried the following way
The Code is:
function addNewItem(sender,args) {
  var MasterGrid = grid;
var masterTableView = MasterGrid .get_masterTableView();
var batchEditingManager = MasterGrid .get_batchEditingManager();
batchEditingManager.addNewRecord(masterTableView);
}

When I click the new row the row was created in radgrid. but the template column was not created also the index was set to -1,-2, etc...
In Radgrid we using shift click function so its throws script error.


I need to add multiple row one by one on rad button click not command button and I have one Rad Button checkbox template column in my grid how can I achieve this.

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 25 Dec 2014, 10:00 AM
Hello Senthil,

Does the application work if you use the default Add New Record button:
http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultcs.aspx

Also, can you please verify whether you are using the latest release version of the controls?

Regards,
Eyup
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
General Discussions
Asked by
Senthil
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or