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

cancel the edit/insert mode

1 Answer 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Savyo
Top achievements
Rank 1
Savyo asked on 10 Oct 2012, 09:21 AM
Hi,
     I have a requirement to cancel the edit/insert mode on an external button click. How can I fulfill this. Can anybody suggest something helpful
Thanks
Savyo

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 10 Oct 2012, 09:25 AM
Hi,

Please try the following code snippet to cancel the edit/insert mode on external button click.

C#:
protected void Button1_Click(object sender, EventArgs e)
{
    RadGrid1.MasterTableView.IsItemInserted = false;
    RadGrid1.MasterTableView.ClearEditItems();
    RadGrid1.Rebind();
}

Thanks,
Shinu.
Tags
Grid
Asked by
Savyo
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or