RadGrid deleting

3 posts, 1 answers
  1. Lighthouse Developer
    Lighthouse Developer avatar
    34 posts
    Member since:
    Feb 2010

    Posted 07 May 2010 Link to this post

    Hi! I've implemented one of the examples for using the RadMenu as a context menu and it works for Insert and Edit but not for Delete. I think the command is not right, at least for my project.

                case "Delete":
                    rgUsers.MasterTableView.PerformDelete(rgUsers.Items[radGridClickedRowIndex]);
                    break;

    This fires but nothing happens. Every other Delete link works. Both the CommandItem bar and the link on the row itself. Any help?
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 07 May 2010 Link to this post

    Hello,

    I tried your code and found its working fine on my end (using RadControls version 2009.3.1103.35). Can you please make sure that you are getting correct 'radGridClickedRowIndex' value?

    Also try accessing corresponding item and invoke the "FireCommandEvent" method to perform delete. The documentation shows more on "FireCommandEvent" method.
    How to fire command events from code

    Regards,
    Shinu.
  3. Lighthouse Developer
    Lighthouse Developer avatar
    34 posts
    Member since:
    Feb 2010

    Posted 07 May 2010 Link to this post

    That worked! Don't know why the original command didn't work but firing the command that way worked. Thanks!
Back to Top