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

How can I Insert Multiple row in RadGrid!

5 Answers 419 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nahid
Top achievements
Rank 1
Nahid asked on 25 Sep 2010, 05:17 PM
I am working on Telerik RadAjax Control. I need a grid with multiple rows in edit mode. like below image: grid Image.

How can I make this?

5 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 27 Sep 2010, 08:04 AM
Hello,

The following links will shed some light on how to accomplish this.
Performing batch updates
Put all items in edit mode without additional rebind


-Shinu.
0
illumination
Top achievements
Rank 2
answered on 07 Oct 2010, 10:01 PM
The explanation and the examples are for edit or update but not for insert new multiple rows in the grid.
Anybody can help me on how to INSERT new multiple rows while grabbing the mastertableview DataKeyNames?

Thank you.
0
Pavlina
Telerik team
answered on 08 Oct 2010, 08:21 AM
Hello,

I suggest that you use a similar approach to the one in the Insert with Tooltip online example to implement the desired functionality.

Sincerely yours,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
illumination
Top achievements
Rank 2
answered on 08 Oct 2010, 01:33 PM
Pavlina,
The example that you gave me was for more different products with the same ID but I need to insert same information with more different IDs. Like select all or few checkboxes, click a button which it will open a pop up windows that contains information that user need to input then when the user click submit, it will insert different IDs which checked earlier with same input information. Please see image.
Image 1 consists the grid with checkboxes and Line Item Number as IDs.
Image 2 consists the window input information that will popup when the user click Add button in Image 1.
Image 3 consists the data that are inserted in database table when the submit button in Image 2 is clicked.

Thank you very much.
0
Andy
Top achievements
Rank 1
answered on 11 Oct 2010, 05:37 AM
You can just create copies of selected items and generate new ID's programmatically. If you don't want to save new items to the database at once, you'll need to use some sort of a buffer for data source - a data table stored in a session for example. This will allow you to add new items to this buffer-datasource and bind it to the grid without creating new records in DB.
Tags
Grid
Asked by
Nahid
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
illumination
Top achievements
Rank 2
Pavlina
Telerik team
Andy
Top achievements
Rank 1
Share this question
or