Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
510
xamGrid + xamContextMenu sample
posted

Hello,

Is there a sample to show integration of xamcontextMenu with xamgrid?

I would like to provide some operations in a context menu on a grid depending on the cell / column header that has been right clicked.

Please ask me if you need more explanations.

Regards,

Parents
No Data
Reply
  • 27093
    Verified Answer
    posted

    Hello Julien,

     

    I have  been looking into your request and even though there are no such samples available, I have found a way for you to achieve your goal. You can use the XamContextMenu’s Open and Opening events to get the element you need . In your case I can suggest finding the  CellControl since it would provide you with the information you mentioned. You can do it by using this code snippet in the either of the events:

     

    if (e.GetClickedElements<CellControl>().Count >0)

    {

    CellControl temp = e.GetClickedElements<CellControl>()[0];

    }

     

    Please let me know if you require any further assistance on the matter.

     

    Sincerely,

    Petar Monov

    Developer Support Engineer

    Infragistics Bulgaria

    www.infragistics.com/support

     

Children