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

How can I perform an update in a formtemplate without closing

1 Answer 14 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bill
Top achievements
Rank 2
Bill asked on 10 May 2010, 07:13 PM
I am writing a app that sends email to recipients based on templates.

Templates have a one to many relationship to recipients

I'm using radgrid to display the email templates and do inserts/updates.  With a formtemplate popup with another radgrid on it for the recipients.

When I'm inserting a new email template,  I have the situation where I need to perform the row insert without closing the formtemplate / popup, so I have a key for the recipients.

Is there a way to do this sort of thing?

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 11 May 2010, 12:36 PM
Hello Bill,

Just add the following handler to the grid's OnItemInserted event:

protected void Page_Load(object sender, EventArgs e)
{
    RadGrid1.ItemInserted += new GridInsertedEventHandler(RadGrid1_ItemInserted);
}
protected void RadGrid1_ItemInserted(object source, GridInsertedEventArgs e)
{
    e.KeepInInsertMode = true;
}

Hope it helps.

Greetings,
Tsvetoslav
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.
Tags
Grid
Asked by
Bill
Top achievements
Rank 2
Answers by
Tsvetoslav
Telerik team
Share this question
or