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

Insert sequence in RadGrid

2 Answers 83 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Luiz
Top achievements
Rank 2
Luiz asked on 13 Mar 2009, 12:23 PM
I need to make my grid allows an insertion after the other, without stopping, and only leave the insertion mode when the user clicks cancel.

Any suggestions?

2 Answers, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 16 Mar 2009, 09:21 AM
Hello Luiz,

Test the following snippets:

Automatic operations:
protected void RadGrid1_ItemInserted(object source, GridInsertedEventArgs e) 
    e.KeepInInsertMode = true

Manual insert/update/delete:
protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e) 
    if (e.CommandName == RadGrid.PerformInsertCommandName) 
    {  
        //do something (update the DB) 
        e.Canceled = true
    } 

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Luiz
Top achievements
Rank 2
answered on 16 Mar 2009, 11:20 AM
thanks for replay, it's work.
Tags
Grid
Asked by
Luiz
Top achievements
Rank 2
Answers by
Daniel
Telerik team
Luiz
Top achievements
Rank 2
Share this question
or