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

How can I insert blank row into RadGrid

1 Answer 355 Views
Grid
This is a migrated thread and some comments may be shown as answers.
An
Top achievements
Rank 1
An asked on 24 Feb 2011, 05:07 AM
is this code are correct:

var masterTable = $find("<%= RadGrid1.ClientID >").get_masterTableView();<br>masterTable.IsItemInserted = true;<br>masterTable.insertItem();

I need insert new record into sqlDatabase, if complete,  I will insert new row from client side without download all data from server side (a static field declared to store Database). I has been finish in delete case. Please guide me how to make it.

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 01 Mar 2011, 01:27 PM
Hi An,

RadGrid is a databound control meaning that is can display only what it is bound to. In other words - you need to add a new row to the grid datasource and rebind the control in order to be able to show a new row in it. Is this requirement covered by your insert logic?

Generally, the client-side insert supported by RadGrid is demonstrated in this online demo:
Client-side Insert/Update/Delete

Regards,
Tsvetina
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Grid
Asked by
An
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or