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

Save item on AddNewRecord click

1 Answer 45 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Aditi
Top achievements
Rank 1
Aditi asked on 31 Oct 2012, 02:11 AM
Hi,

I have a radgrid, command settings of grid are :

<

 

 

CommandItemSettings AddNewRecordText="Add New Quote Item" />
When I click on Add New Quote Item it inserts a row in grid, now I want to save the previous insert item, if click Add New Quote Item again. i.e. click Add. inserts a row in grid, type in text for each columns and then when I click Add agian it should save my previouly inserted row and then insert a new row in grid.

Or Grid should allow me to add multiple rows without saving them.

Please suggest.

Thanks,
Aditi

 

1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 05 Nov 2012, 08:57 AM
Hi Aditi,

The custom functionality that you want to achieve can be implemented using CommandItemTemplate. By creating two separate buttons, one for opening the insert form and one for inserting. By handling different events for showing and hiding the buttons you would be able to achieve your goal. Attached is a project for you to review which demonstrates this approach.


All the best,
Angel Petrov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Aditi
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or