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

Close Insert/Edit Form when Refresh Grid button is clicked

1 Answer 19 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 30 Sep 2011, 05:16 PM
How do I close the Insert/Edit Form when the Refresh Grid Button is clicked?

I should say I'm using EditFormType="WebUserControl"

Thanks for everyone's continued help.


1 Answer, 1 is accepted

Sort by
0
Accepted
Jayesh Goyani
Top achievements
Rank 2
answered on 30 Sep 2011, 05:26 PM
Hello,

protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
        {  
            if (e.CommandName == RadGrid.RebindGridCommandName)
            {
                RadGrid1.MasterTableView.IsItemInserted = false;
                RadGrid1.MasterTableView.ClearEditItems();
            }
        }

let me know if any concern.

Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Chris
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Share this question
or