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

3 posts, 1 answers
  1. Ganapathy
    Ganapathy avatar
    12 posts
    Member since:
    Aug 2012

    Posted 28 Mar 2013 Link to this post

    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. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 28 Mar 2013 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ganapathy
    Ganapathy avatar
    12 posts
    Member since:
    Aug 2012

    Posted 28 Mar 2013 Link to this post

    Hi Shinu,

    Thank you very much for your help !

    Your code works well :)

    Once again Thank You very much.

    Thank You
    Regards
    Ganapathy
Back to Top