Hi,
I want to add duplicate row whenever user clicks one button called "Create Duplicate" in RadGrid.
Ex: I have one Grid with columns EmpNo (Textbox), ProjectCode(Textbox) , Hour-Rate(Textbox) , StartDate(Textbox) , EndDate(Textbox) , CreateDuplicate (Button).
Say there are 10 rows in the grid.
If the user clicks "Create Duplicate" button in 2nd row, A duplicate row has to be added under 2nd row with the same EmpNo,ProjectCode and other controls with empty data which will be user entry. so now the total no.of rows in Grid will be 11.
Like that if user clicks on "Create Duplicate" button in 5h row A duplicate row has to be added under 5th row.
it would be very nice if code is provided.
Thanks
B L R.
I want to add duplicate row whenever user clicks one button called "Create Duplicate" in RadGrid.
Ex: I have one Grid with columns EmpNo (Textbox), ProjectCode(Textbox) , Hour-Rate(Textbox) , StartDate(Textbox) , EndDate(Textbox) , CreateDuplicate (Button).
Say there are 10 rows in the grid.
If the user clicks "Create Duplicate" button in 2nd row, A duplicate row has to be added under 2nd row with the same EmpNo,ProjectCode and other controls with empty data which will be user entry. so now the total no.of rows in Grid will be 11.
Like that if user clicks on "Create Duplicate" button in 5h row A duplicate row has to be added under 5th row.
| Sl.No | Code | Name | LocationName | StartDate | EndDate | Rate | Taxable | Documentation Complete | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 1 | 11270 | Rajesh Jha | Noida | |||||||
| 2 | 2 | 11424 | Prashanth Akula | Pune | |||||||
| 3 | 3 | 11884 | Praveen Venkata Inaganti | Delhi-2 | |||||||
| 4 | 4 | 11938 | Srinivasa Varanasi | Hyderabad | |||||||
| 5 | 5 | 12002 | Satyanarayana Dev Mudunuru | Hyderabad | |||||||
| 6 | 6 | 12071 | Ajay Bolla | Hyderabad | |||||||
| 7 | 7 | 12222 | Gajendra Deshpande | Pune | |||||||
| 8 | 8 | 12260 | Afzal Naseem | Noida | |||||||
| 9 | 9 | 12768 | Mangesh Jawarkar | Pune | |||||||
| 10 | 10 | 12772 | Raghavanjaneyulu Bhogireddi | Hyderabad |
it would be very nice if code is provided.
Thanks
B L R.
1 Answer, 1 is accepted
0
Princy
Top achievements
Rank 2
answered on 20 May 2009, 09:38 AM
Hello,
Checkout the following forum link which discussed about similar scenario. I hope this would helpful in implemeting the functionality.
Copy a Record
-Princy.
Checkout the following forum link which discussed about similar scenario. I hope this would helpful in implemeting the functionality.
Copy a Record
-Princy.