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

RadGrid: How to use both InPlace and PopUp edit mode in same grid?

2 Answers 44 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Ganapathy
Top achievements
Rank 1
Ganapathy asked on 28 Mar 2013, 05:05 AM
Hello,

How to use both InPlace and PopUp edit mode in same grid? 

I have the functionality like "adding new rows" and "editing the existing row", I wish to have PopUp for Adding new rows and InPlace for Editing the existing row.

Please let me know in which way I can able to accompolish this.

Thank You
Regards
Ganapathy

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 28 Mar 2013, 05:23 AM
Hi,

Try the following code to achieve your scenario.
C#:
protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
{
        if (e.CommandName == RadGrid.EditCommandName)
        {
            RadGrid1.MasterTableView.EditMode = GridEditMode.InPlace;
        }
        if (e.CommandName == RadGrid.InitInsertCommandName)
        {
            RadGrid1.MasterTableView.EditMode = GridEditMode.PopUp;
        }
}

Thanks,
Shinu
0
Ganapathy
Top achievements
Rank 1
answered on 29 Mar 2013, 04:35 AM
Hi Shinu,

Thank you very much for your help !

Your code works well :)

Once again Thank You very much.

Thank You
Regards
Ganapathy
Tags
Ajax
Asked by
Ganapathy
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Ganapathy
Top achievements
Rank 1
Share this question
or