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

Insert row in RadGrid

3 Answers 75 Views
Grid
This is a migrated thread and some comments may be shown as answers.
toi
Top achievements
Rank 1
toi asked on 08 Dec 2008, 07:22 AM
Hi Telerik team,

I've seen the Radgrid for couple days. But I don't have the solution for my problem about insert function.

I need the way to insert data by click add new record link --> fill data and then click outside button to insert that record by no clicking on insert row of radgrid.

Is there any suggestion for this problem?

Thanks in advance,
-Toi

3 Answers, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 08 Dec 2008, 09:44 AM
Hello Toi,

Please test the following approach:
    protected void Button1_Click(object sender, EventArgs e) 
    { 
        if (RadGrid1.MasterTableView.IsItemInserted) 
        { 
            GridEditableItem item = RadGrid1.MasterTableView.GetInsertItem(); 
            item.FireCommandEvent("PerformInsert"""); 
        } 
    } 

Let us know if you need further assistance.

Kind regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Accepted
Princy
Top achievements
Rank 1
answered on 08 Dec 2008, 09:49 AM
HI Toi,

You can also refer this help artice to get more details about How to fire command events from code.

Thanks
Princy
0
toi
Top achievements
Rank 1
answered on 08 Dec 2008, 10:59 AM
Thanks Daniel
Tags
Grid
Asked by
toi
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Princy
Top achievements
Rank 1
toi
Top achievements
Rank 1
Share this question
or